(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ca=ba(this);
function t(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}function x(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}function y(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};/*

 Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 Google as part of the polymer project is also subject to an additional IP
 rights grant found at http://polymer.github.io/PATENTS.txt
*/
Array.from||(Array.from=function(a){return[].slice.call(a)});Object.assign||(Object.assign=function(a){for(var b=[].slice.call(arguments,1),c=0,d;c<b.length;c++)if(d=b[c])for(var e=a,f=Object.keys(d),g=0;g<f.length;g++){var h=f[g];e[h]=d[h]}return a});/*


 Copyright (c) 2014 Taylor Hakes
 Copyright (c) 2014 Forbes Lindesay

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
var da=setTimeout;function ea(){}function fa(a,b){return function(){a.apply(b,arguments)}}function C(a){if(!(this instanceof C))throw new TypeError("Promises must be constructed via new");if(typeof a!=="function")throw new TypeError("not a function");this.C=0;this.Wa=!1;this.s=void 0;this.U=[];ha(a,this)}
function ia(a,b){for(;a.C===3;)a=a.s;a.C===0?a.U.push(b):(a.Wa=!0,ja(function(){var c=a.C===1?b.Lc:b.Mc;if(c===null)(a.C===1?ka:la)(b.promise,a.s);else{try{var d=c(a.s)}catch(e){la(b.promise,e);return}ka(b.promise,d)}}))}
function ka(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&(typeof b==="object"||typeof b==="function")){var c=b.then;if(b instanceof C){a.C=3;a.s=b;ma(a);return}if(typeof c==="function"){ha(fa(c,b),a);return}}a.C=1;a.s=b;ma(a)}catch(d){la(a,d)}}function la(a,b){a.C=2;a.s=b;ma(a)}
function ma(a){a.C===2&&a.U.length===0&&ja(function(){a.Wa||typeof console!=="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",a.s)});for(var b=0,c=a.U.length;b<c;b++)ia(a,a.U[b]);a.U=null}function na(a,b,c){this.Lc=typeof a==="function"?a:null;this.Mc=typeof b==="function"?b:null;this.promise=c}function ha(a,b){var c=!1;try{a(function(d){c||(c=!0,ka(b,d))},function(d){c||(c=!0,la(b,d))})}catch(d){c||(c=!0,la(b,d))}}C.prototype["catch"]=function(a){return this.then(null,a)};
C.prototype.then=function(a,b){var c=new this.constructor(ea);ia(this,new na(a,b,c));return c};C.prototype["finally"]=function(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){return b.reject(c)})})};
function oa(a){return new C(function(b,c){function d(h,k){try{if(k&&(typeof k==="object"||typeof k==="function")){var l=k.then;if(typeof l==="function"){l.call(k,function(p){d(h,p)},c);return}}e[h]=k;--f===0&&b(e)}catch(p){c(p)}}if(!a||typeof a.length==="undefined")throw new TypeError("Promise.all accepts an array");var e=Array.prototype.slice.call(a);if(e.length===0)return b([]);for(var f=e.length,g=0;g<e.length;g++)d(g,e[g])})}
function pa(a){return a&&typeof a==="object"&&a.constructor===C?a:new C(function(b){b(a)})}function qa(a){return new C(function(b,c){c(a)})}function ra(a){return new C(function(b,c){for(var d=0,e=a.length;d<e;d++)a[d].then(b,c)})}var ja=typeof setImmediate==="function"&&function(a){setImmediate(a)}||function(a){da(a,0)};/*

 Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
 http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
 found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
 part of the polymer project is also subject to an additional IP rights grant
 found at http://polymer.github.io/PATENTS.txt
*/
if(!window.Promise){window.Promise=C;C.prototype.then=C.prototype.then;C.all=oa;C.race=ra;C.resolve=pa;C.reject=qa;var sa=document.createTextNode(""),ta=[];(new MutationObserver(function(){for(var a=ta.length,b=0;b<a;b++)ta[b]();ta.splice(0,a)})).observe(sa,{characterData:!0});ja=function(a){ta.push(a);sa.textContent=sa.textContent.length>0?"":"a"}};var ua=document.createEvent("Event");ua.initEvent("foo",!0,!0);ua.preventDefault();if(!ua.defaultPrevented){var va=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(va.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var wa=/Trident/.test(navigator.userAgent);
if(!window.Event||wa&&typeof window.Event!=="function"){var xa=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(xa){for(var ya in xa)window.Event[ya]=xa[ya];window.Event.prototype=xa.prototype}}
if(!window.CustomEvent||wa&&typeof window.CustomEvent!=="function")window.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype;
if(!window.MouseEvent||wa&&typeof window.MouseEvent!=="function"){var za=window.MouseEvent;window.MouseEvent=function(a,b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(za)for(var Aa in za)window.MouseEvent[Aa]=za[Aa];window.MouseEvent.prototype=za.prototype};var Ba=function(){function a(){e++}var b=!1,c=!1,d={get capture(){return b=!0},get once(){return c=!0}},e=0,f=document.createElement("div");f.addEventListener("click",a,d);var g=b&&c;g&&(f.dispatchEvent(new Event("click")),f.dispatchEvent(new Event("click")),g=e==1);f.removeEventListener("click",a,d);return g}(),Da,Ea=(Da=window.EventTarget)!=null?Da:window.Node;
if(!Ba&&"addEventListener"in Ea.prototype){var Fa=function(a){if(!a||typeof a!=="object"&&typeof a!=="function"){var b=!!a;a=!1}else b=!!a.capture,a=!!a.once;return{capture:b,once:a}},Ga=Ea.prototype.addEventListener,Ha=Ea.prototype.removeEventListener,Ia=new WeakMap,Ja=new WeakMap,Ka=function(a,b,c){var d=c?Ia:Ja;c=d.get(a);c===void 0&&d.set(a,c=new Map);a=c.get(b);a===void 0&&c.set(b,a=new WeakMap);return a};Ea.prototype.addEventListener=function(a,b,c){var d=this;if(b!=null){c=Fa(c);var e=c.capture;
c=c.once;var f=Ka(this,a,e);if(!f.has(b)){var g=c?function(k){f.delete(b);Ha.call(d,a,g,e);if(typeof b==="function")return b.call(d,k);if(typeof(b==null?void 0:b.handleEvent)==="function")return b.handleEvent(k)}:null;f.set(b,g);var h;Ga.call(this,a,(h=g)!=null?h:b,e)}}};Ea.prototype.removeEventListener=function(a,b,c){if(b!=null){c=Fa(c).capture;var d=Ka(this,a,c),e=d.get(b);e!==void 0&&(d.delete(b),Ha.call(this,a,e!=null?e:b,c))}}};/*

 Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
 http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
 found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
 part of the polymer project is also subject to an additional IP rights grant
 found at http://polymer.github.io/PATENTS.txt
*/
var La=Element.prototype,Ma,Na,Oa,Pa=(Oa=(Na=(Ma=Object.getOwnPropertyDescriptor(La,"attributes"))!=null?Ma:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"))==null?void 0:Na.get)!=null?Oa:function(){return this.attributes},Qa=Array.prototype.map;La.hasOwnProperty("getAttributeNames")||(La.getAttributeNames=function(){return Qa.call(Pa.call(this),function(a){return a.name})});var Ra=Element.prototype;if(!Ra.hasOwnProperty("matches")){var Ua;Ra.matches=(Ua=Ra.webkitMatchesSelector)!=null?Ua:Ra.msMatchesSelector};/*

 Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Va=Node.prototype.appendChild;function Wa(a){a=a.prototype;a.hasOwnProperty("append")||Object.defineProperty(a,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){for(var b=t(y.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,Va.call(this,typeof c==="string"?document.createTextNode(c):c)}})}Wa(Document);Wa(DocumentFragment);Wa(Element);var Xa=Node.prototype.insertBefore,Ya,Za,$a=(Za=(Ya=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))==null?void 0:Ya.get)!=null?Za:function(){return this.firstChild};function ab(a){a=a.prototype;a.hasOwnProperty("prepend")||Object.defineProperty(a,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=y.apply(0,arguments),c=$a.call(this);b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,Xa.call(this,typeof d==="string"?document.createTextNode(d):d,c)}})}ab(Document);
ab(DocumentFragment);ab(Element);var bb=Node.prototype.appendChild,cb=Node.prototype.removeChild,db,eb,fb=(eb=(db=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))==null?void 0:db.get)!=null?eb:function(){return this.firstChild};
function gb(a){a=a.prototype;a.hasOwnProperty("replaceChildren")||Object.defineProperty(a,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(){for(var b=y.apply(0,arguments),c;(c=fb.call(this))!==null;)cb.call(this,c);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,bb.call(this,typeof c==="string"?document.createTextNode(c):c)}})}gb(Document);gb(DocumentFragment);gb(Element);var hb=Node.prototype.insertBefore,ib,jb,kb=(jb=(ib=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))==null?void 0:ib.get)!=null?jb:function(){return this.parentNode},lb,mb,nb=(mb=(lb=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))==null?void 0:lb.get)!=null?mb:function(){return this.nextSibling};
function ob(a){a=a.prototype;a.hasOwnProperty("after")||Object.defineProperty(a,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=y.apply(0,arguments),c=kb.call(this);if(c!==null){var d=nb.call(this);b=t(b);for(var e=b.next();!e.done;e=b.next())e=e.value,hb.call(c,typeof e==="string"?document.createTextNode(e):e,d)}}})}ob(CharacterData);ob(Element);var pb=Node.prototype.insertBefore,qb,rb,sb=(rb=(qb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))==null?void 0:qb.get)!=null?rb:function(){return this.parentNode};
function tb(a){a=a.prototype;a.hasOwnProperty("before")||Object.defineProperty(a,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=y.apply(0,arguments),c=sb.call(this);if(c!==null){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,pb.call(c,typeof d==="string"?document.createTextNode(d):d,this)}}})}tb(CharacterData);tb(Element);var ub=Node.prototype.removeChild,vb,wb,xb=(wb=(vb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))==null?void 0:vb.get)!=null?wb:function(){return this.parentNode};function yb(a){a=a.prototype;a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=xb.call(this);b&&ub.call(b,this)}})}yb(CharacterData);yb(Element);var zb=Node.prototype.insertBefore,Ab=Node.prototype.removeChild,Bb,Cb,Db=(Cb=(Bb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))==null?void 0:Bb.get)!=null?Cb:function(){return this.parentNode};
function Eb(a){a=a.prototype;a.hasOwnProperty("replaceWith")||Object.defineProperty(a,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=y.apply(0,arguments),c=Db.call(this);if(c!==null){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,zb.call(c,typeof d==="string"?document.createTextNode(d):d,this);Ab.call(c,this)}}})}Eb(CharacterData);Eb(Element);var Fb=window.Element.prototype,Gb=window.HTMLElement.prototype,Hb=window.SVGElement.prototype;!Gb.hasOwnProperty("classList")||Fb.hasOwnProperty("classList")||Hb.hasOwnProperty("classList")||Object.defineProperty(Fb,"classList",Object.getOwnPropertyDescriptor(Gb,"classList"));/*

 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at
 http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 Google as part of the polymer project is also subject to an additional IP
 rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Lb=document.createElement("style");Lb.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Mb=document.querySelector("head");Mb.insertBefore(Lb,Mb.firstChild);var Nb=window;Nb.WebComponents=Nb.WebComponents||{flags:{}};var Ob=document.querySelector('script[src*="webcomponents-lite.js"]'),Pb=/wc-(.+)/,D={};if(!D.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(Pb))&&(D[b[1]]=a[1]||!0)});if(Ob)for(var Qb=0,Rb=void 0;Rb=Ob.attributes[Qb];Qb++)Rb.name!=="src"&&(D[Rb.name]=Rb.value||!0);var Sb={};D.log&&D.log.split&&D.log.split(",").forEach(function(a){Sb[a]=!0});D.log=Sb}Nb.WebComponents.flags=D;
var Tb=D.shadydom;Tb&&(Nb.ShadyDOM=Nb.ShadyDOM||{},Nb.ShadyDOM.force=Tb);var Ub=D.register||D.ce;Ub&&window.customElements&&(Nb.customElements.forcePolyfill=Ub);/*

 Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
(function(a){function b(m,q){if(typeof window.CustomEvent==="function")return new CustomEvent(m,q);var r=document.createEvent("CustomEvent");r.initCustomEvent(m,!!q.bubbles,!!q.cancelable,q.detail);return r}function c(m){if(Z)return m.ownerDocument!==document?m.ownerDocument:null;var q=m.__importDoc;if(!q&&m.parentNode){q=m.parentNode;if(typeof q.closest==="function")q=q.closest("link[rel=import]");else for(;!h(q)&&(q=q.parentNode););m.__importDoc=q}return q}function d(m){var q=p(document,"link[rel=import]:not([import-dependency])"),
r=q.length;r?v(q,function(u){return g(u,function(){--r===0&&m()})}):m()}function e(m){function q(){document.readyState!=="loading"&&document.body&&(document.removeEventListener("readystatechange",q),m())}document.addEventListener("readystatechange",q);q()}function f(m){e(function(){return d(function(){return m&&m()})})}function g(m,q){if(m.__loaded)q&&q();else if(m.localName==="script"&&!m.src||m.localName==="style"&&!m.firstChild||m.localName==="style"&&m.namespaceURI==="http://www.w3.org/2000/svg")m.__loaded=
!0,q&&q();else{var r=function(u){m.removeEventListener(u.type,r);m.__loaded=!0;q&&q()};m.addEventListener("load",r);m.localName==="style"&&(Ib||Sa)||m.addEventListener("error",r)}}function h(m){return m.nodeType===Node.ELEMENT_NODE&&m.localName==="link"&&m.rel==="import"}function k(){var m=this;this.I={};this.Y=0;this.Ia=new MutationObserver(function(q){return m.Ec(q)});this.Ia.observe(document.head,{childList:!0,subtree:!0});this.loadImports(document)}function l(m){v(p(m,"template"),function(q){v(p(q.content,
'script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'),function(r){var u=document.createElement("script");v(r.attributes,function(z){return u.setAttribute(z.name,z.value)});u.textContent=r.textContent;r.parentNode.replaceChild(u,r)});l(q.content)})}function p(m,q){return m.childNodes.length?m.querySelectorAll(q):Gg}function v(m,q,r){var u=m?m.length:0,z=r?-1:1;for(r=r?u-1:0;r<u&&r>=0;r+=z)q(m[r],r)}var B=document.createElement("link"),Z="import"in
B,Gg=B.querySelectorAll("*"),Jb=null;"currentScript"in document===!1&&Object.defineProperty(document,"currentScript",{get:function(){return Jb||(document.readyState!=="complete"?document.scripts[document.scripts.length-1]:null)},configurable:!0});var Hg=/(url\()([^)]*)(\))/g,Ig=/(@import[\s]+(?!url\())([^;]*)(;)/g,Jg=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Q={Cc:function(m,q){m.href&&m.setAttribute("href",Q.ua(m.getAttribute("href"),q));m.src&&m.setAttribute("src",Q.ua(m.getAttribute("src"),
q));if(m.localName==="style"){var r=Q.sb(m.textContent,q,Hg);m.textContent=Q.sb(r,q,Ig)}},sb:function(m,q,r){return m.replace(r,function(u,z,w,A){u=w.replace(/["']/g,"");q&&(u=Q.ua(u,q));return z+"'"+u+"'"+A})},ua:function(m,q){if(Q.wa===void 0){Q.wa=!1;try{var r=new URL("b","http://a");r.pathname="c%20d";Q.wa=r.href==="http://a/c%20d"}catch(u){}}if(Q.wa)return(new URL(m,q)).href;r=Q.Cb;r||(r=document.implementation.createHTMLDocument("temp"),Q.Cb=r,r.Na=r.createElement("base"),r.head.appendChild(r.Na),
r.Ma=r.createElement("a"));r.Na.href=q;r.Ma.href=m;return r.Ma.href||m}},Nd={async:!0,load:function(m,q,r){if(m)if(m.match(/^data:/)){m=m.split(",");var u=m[1];u=m[0].indexOf(";base64")>-1?atob(u):decodeURIComponent(u);q(u)}else{var z=new XMLHttpRequest;z.open("GET",m,Nd.async);z.onload=function(){var w,A=(w=z.responseURL||z.getResponseHeader("Location"))!=null?w:void 0;A&&A.indexOf("/")===0&&(A=(location.origin||location.protocol+"//"+location.host)+A);w=z.response||z.responseText;z.status===304||
z.status===0||z.status>=200&&z.status<300?q(w,A):r(w)};z.send()}else r("error: href must be specified")}},Ib=/Trident/.test(navigator.userAgent),Sa=/Edge\/\d./i.test(navigator.userAgent);k.prototype.loadImports=function(m){var q=this;m=p(m,"link[rel=import]");v(m,function(r){return q.pb(r)})};k.prototype.pb=function(m){var q=this,r=m.href;if(this.I[r]!==void 0){var u=this.I[r];u&&u.__loaded&&(m.__import=u,this.nb(m))}else this.Y++,this.I[r]="pending",Nd.load(r,function(z,w){z=q.Kc(z,w||r);q.I[r]=
z;q.Y--;q.loadImports(z);q.rb()},function(){q.I[r]=null;q.Y--;q.rb()})};k.prototype.Kc=function(m,q){var r=this;if(!m)return document.createDocumentFragment();if(Ib||Sa)m=m.replace(Jg,function(w,A,Ta){return w.indexOf("type=")===-1?A+" type=import-disable "+Ta:w});var u=document.createElement("template");u.innerHTML=m;if(u.content)m=u.content,l(m);else for(m=document.createDocumentFragment();u.firstChild;)m.appendChild(u.firstChild);if(u=m.querySelector("base"))q=Q.ua(u.getAttribute("href"),q),u.removeAttribute("href");
u=p(m,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]');var z=0;v(u,function(w){g(w);Q.Cc(w,q);if(w.localName==="style"&&r.ub(w)){var A=r.xc(w);g(A);w.parentNode.replaceChild(A,w);w=A}w.setAttribute("import-dependency","");if(w.localName==="script"&&!w.src&&w.textContent){if(w.type==="module")throw Error("Inline module scripts are not supported in HTML Imports.");
w.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(w.textContent+("\n//# sourceURL="+q+(z?"-"+z:"")+".js\n")));w.textContent="";z++}});return m};k.prototype.ub=function(m){return Sa&&m.textContent.indexOf("@import")>-1};k.prototype.xc=function(m){var q=m.ownerDocument.createElement("style");q.textContent=m.textContent;v(m.attributes,function(r){return q.setAttribute(r.name,r.value)});return q};k.prototype.rb=function(){var m=this;if(!this.Y){this.Ia.disconnect();this.flatten(document);
var q=!1,r=!1,u=function(){r&&q&&(m.loadImports(document),m.Y||(m.Ia.observe(document.head,{childList:!0,subtree:!0}),m.Bc()))};this.Zc(function(){r=!0;u()});this.Qc(function(){q=!0;u()})}};k.prototype.flatten=function(m){var q=this;m=p(m,"link[rel=import]");v(m,function(r){var u=q.I[r.href];(r.__import=u)&&u.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(q.I[r.href]=r,r.readyState="loading",r.__import=r,q.flatten(u),r.appendChild(u))})};k.prototype.Qc=function(m){function q(z){if(z<u){var w=r[z],A=document.createElement("script");
w.removeAttribute("import-dependency");v(w.attributes,function(Ta){return A.setAttribute(Ta.name,Ta.value)});Jb=A;w.parentNode.replaceChild(A,w);g(A,function(){Jb=null;q(z+1)})}else m()}var r=p(document,"script[import-dependency]"),u=r.length;q(0)};k.prototype.Zc=function(m){var q=this,r=p(document,"style[import-dependency],link[rel=stylesheet][import-dependency]"),u=r.length;if(u){var z=(Ib||Sa)&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");v(r,function(w){z&&q.ub(w)&&
w.ownerDocument.defaultView!==window.top&&(w.__loaded=!0);g(w,function(){w.removeAttribute("import-dependency");--u===0&&m()});if(z&&w.parentNode!==document.head){var A=document.createElement(w.localName);A.__appliedElement=w;A.setAttribute("type","import-placeholder");w.parentNode.insertBefore(A,w.nextSibling);for(A=c(w);A&&c(A);)A=c(A);A.parentNode!==document.head&&(A=null);document.head.insertBefore(w,A);w.removeAttribute("type")}})}else m()};k.prototype.Bc=function(){var m=this,q=p(document,"link[rel=import]");
v(q,function(r){return m.nb(r)},!0)};k.prototype.nb=function(m){m.__loaded||(m.__loaded=!0,m.import&&(m.import.readyState="complete"),m.dispatchEvent(b(m.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.Ec=function(m){var q=this;v(m,function(r){return v(r.addedNodes,function(u){u&&u.nodeType===Node.ELEMENT_NODE&&(h(u)?q.pb(u):q.loadImports(u))})})};var Kb=null;if(Z)B=p(document,"link[rel=import]"),v(B,function(m){m.import&&m.import.readyState==="loading"||(m.__loaded=
!0)}),B=function(m){m=m.target;h(m)&&(m.__loaded=!0)},document.addEventListener("load",B,!0),document.addEventListener("error",B,!0);else{var Ca=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!Ca||Ca.configurable?Node:Element).prototype,"baseURI",{get:function(){var m=h(this)?this:c(this);return m?m.href:Ca&&Ca.get?Ca.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0});Object.defineProperty(HTMLLinkElement.prototype,
"import",{get:function(){return this.__import||null},configurable:!0,enumerable:!0});e(function(){Kb=new k})}f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=Z;a.whenReady=f;a.importForElement=c;a.loadImports=function(m){Kb&&Kb.loadImports(m)}})(window.HTMLImports=window.HTMLImports||{});/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
function Vb(){}Vb.prototype.toJSON=function(){return{}};function E(a){a.__shady||(a.__shady=new Vb);return a.__shady}function F(a){return a&&a.__shady};var G=window.ShadyDOM||{};G.Fc=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Wb=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");G.j=!!(Wb&&Wb.configurable&&Wb.get);G.inUse=G.force||!G.Fc;G.noPatch=G.noPatch||!1;G.ba=G.preferPerformance;G.Ka=G.noPatch==="on-demand";var Xb;var Yb=G.querySelectorImplementation;Xb=["native","selectorEngine"].indexOf(Yb)>-1?Yb:void 0;G.querySelectorImplementation=Xb;var Zb=navigator.userAgent.match("Trident");G.xb=Zb;
function $b(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function ac(a){return(a=F(a))&&a.firstChild!==void 0}function H(a){return a instanceof ShadowRoot}function bc(a){return(a=(a=F(a))&&a.root)&&a.Xa()}var cc=Element.prototype,dc=cc.matches||cc.matchesSelector||cc.mozMatchesSelector||cc.msMatchesSelector||cc.oMatchesSelector||cc.webkitMatchesSelector,ec=document.createTextNode(""),fc=0,gc=[];
(new MutationObserver(function(){for(;gc.length;)try{gc.shift()()}catch(a){throw ec.textContent=fc++,a;}})).observe(ec,{characterData:!0});function hc(a){gc.push(a);ec.textContent=fc++}var ic=document.contains?function(a,b){return a.__shady_native_contains(b)}:function(a,b){return a===b||a.documentElement&&a.documentElement.__shady_native_contains(b)};function jc(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
function kc(a){for(var b=a.length-1;b>=0;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&d!=="length"&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if(e!=="length"&&isNaN(e)&&a[e])return a[e];for(var f=t(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function lc(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
function mc(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function nc(a,b,c){c.configurable=!0;if(c.value)a[b]=c.value;else try{Object.defineProperty(a,b,c)}catch(d){}}function I(a,b,c,d){c=c===void 0?"":c;for(var e in b)d&&d.indexOf(e)>=0||nc(a,c+e,b[e])}function oc(a,b){for(var c in b)c in a&&nc(a,c,b[c])}function J(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b}
function pc(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length;d++)e=c[d],a[e]=b[e]}function qc(a){return a instanceof Node?a:document.createTextNode(""+a)}function rc(){var a=y.apply(0,arguments);if(a.length===1)return qc(a[0]);var b=document.createDocumentFragment();a=t(a);for(var c=a.next();!c.done;c=a.next())b.appendChild(qc(c.value));return b}
function sc(a){var b;for(b=b===void 0?1:b;b>0;b--)a=a.reduce(function(c,d){Array.isArray(d)?c.push.apply(c,x(d)):c.push(d);return c},[]);return a}function tc(a){var b=[],c=new Set;a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c.has(d)||(b.push(d),c.add(d));return b};var uc=[],vc;function wc(a){vc||(vc=!0,hc(xc));uc.push(a)}function xc(){vc=!1;for(var a=!!uc.length;uc.length;)uc.shift()();return a}xc.list=uc;function yc(){this.la=!1;this.addedNodes=[];this.removedNodes=[];this.qa=new Set}function zc(a){a.la||(a.la=!0,hc(function(){a.flush()}))}yc.prototype.flush=function(){if(this.la){this.la=!1;var a=this.takeRecords();a.length&&this.qa.forEach(function(b){b(a)})}};yc.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};
function Ac(a,b){var c=E(a);c.aa||(c.aa=new yc);c.aa.qa.add(b);var d=c.aa;return{Fb:b,O:d,cc:a,takeRecords:function(){return d.takeRecords()}}}function Bc(a){var b=a&&a.O;b&&(b.qa.delete(a.Fb),b.qa.size||(E(a.cc).aa=null))}
function Cc(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=[].slice.call(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var Dc=/[&\u00A0"]/g,Ec=/[&\u00A0<>]/g;function Fc(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function Gc(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var Hc=Gc("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Ic=Gc("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function Jc(a,b){a.localName==="template"&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var p="<"+k,v=h.attributes,B=0,Z;Z=v[B];B++)p+=" "+Z.name+'="'+Z.value.replace(Dc,Fc)+'"';p+=">";h=Hc[k]?p:p+Jc(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&Ic[k.localName]?h:h.replace(Ec,Fc);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),
Error("not implemented");}h=void 0}c+=h}return c};var Kc=G.j,Lc={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Mc={};function Nc(a){Mc[a]=function(b){return b["__shady_native_"+a]}}function Oc(a,b){I(a,b,"__shady_native_");for(var c in b)Nc(c)}function K(a,b){b=b===void 0?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?Lc[d]||(Lc[d]=e.value):Nc(d))}}
var L=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),M=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Pc=document.implementation.createHTMLDocument("inert");function Qc(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var Rc=["firstElementChild","lastElementChild","children","childElementCount"],Sc=["querySelector","querySelectorAll","append","prepend","replaceChildren"];
function Tc(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(K(window.EventTarget.prototype,a),window.__shady_native_addEventListener===void 0&&K(Window.prototype,a)):(K(Node.prototype,a),K(Window.prototype,a),K(XMLHttpRequest.prototype,a));Kc?K(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Oc(Node.prototype,{parentNode:{get:function(){L.currentNode=this;return L.parentNode()}},firstChild:{get:function(){L.currentNode=
this;return L.firstChild()}},lastChild:{get:function(){L.currentNode=this;return L.lastChild()}},previousSibling:{get:function(){L.currentNode=this;return L.previousSibling()}},nextSibling:{get:function(){L.currentNode=this;return L.nextSibling()}},childNodes:{get:function(){var b=[];L.currentNode=this;for(var c=L.firstChild();c;)b.push(c),c=L.nextSibling();return b}},parentElement:{get:function(){M.currentNode=this;return M.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var b=
document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),c="",d;d=b.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(b){if(typeof b==="undefined"||b===null)b="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:Qc(this);(b.length>0||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});K(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
K(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){M.currentNode=this;return M.firstChild()}},lastElementChild:{get:function(){M.currentNode=this;return M.lastChild()}},children:{get:function(){var b=[];M.currentNode=this;for(var c=M.firstChild();c;)b.push(c),c=M.nextSibling();return kc(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Kc?(K(Element.prototype,Rc),K(Element.prototype,["previousElementSibling","nextElementSibling",
"innerHTML","className"]),K(HTMLElement.prototype,["children","innerHTML","className"])):(Oc(Element.prototype,a),Oc(Element.prototype,{previousElementSibling:{get:function(){M.currentNode=this;return M.previousSibling()}},nextElementSibling:{get:function(){M.currentNode=this;return M.nextSibling()}},innerHTML:{get:function(){return Jc(this,lc)},set:function(b){var c=this.localName==="template"?this.content:this;Qc(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==Pc.namespaceURI?
Pc.createElementNS(this.namespaceURI,d):Pc.createElement(d);d.innerHTML=b;for(b=this.localName==="template"?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));K(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute toggleAttribute focus blur".split(" "));K(Element.prototype,Sc);K(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
K(window.HTMLTemplateElement.prototype,["innerHTML"]);Kc?K(DocumentFragment.prototype,Rc):Oc(DocumentFragment.prototype,a);K(DocumentFragment.prototype,Sc);Kc?(K(Document.prototype,Rc),K(Document.prototype,["activeElement"])):Oc(Document.prototype,a);K(Document.prototype,["importNode","getElementById","elementFromPoint",$b()]);K(Document.prototype,Sc)};var Uc=J({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),Vc=J({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){this.__shady_innerHTML=a}}),Wc=J({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(a){this.__shady_className=
a}});function Xc(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}Xc(Uc);Xc(Vc);Xc(Wc);var Yc=G.j||G.noPatch===!0,Zc=Yc?function(){}:function(a){var b=E(a);b.Ab||(b.Ab=!0,oc(a,Wc))},$c=Yc?function(){}:function(a){var b=E(a);b.zb||(b.zb=!0,oc(a,Uc),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!G.noPatch||oc(a,Vc))};var ad="__eventWrappers"+Date.now(),bd=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),cd=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function dd(a){if(a===null||typeof a!=="object"&&typeof a!=="function"){var b=!!a;var c=!1}else{b=!!a.capture;c=!!a.once;var d=a.K}return{tb:d,capture:b,once:c,qb:cd?a:b}}
var ed={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,
drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},fd={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function gd(a){return a instanceof Node?a.__shady_getRootNode():a}
function hd(a,b){var c=[],d=a;for(a=gd(a);d;)c.push(d),d=d.__shady_assignedSlot?d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function id(a){a.__composedPath||(a.__composedPath=hd(a.target,!0));return a.__composedPath}function jd(a,b){if(!H)return a;a=hd(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=gd(d),f!==e&&(g=a.indexOf(f),e=f),!H(f)||g>-1)return d}
var kd={get composed(){this.__composed===void 0&&(bd?this.__composed=this.type==="focusin"||this.type==="focusout"||bd(this):this.isTrusted!==!1&&(this.__composed=ed[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=hd(this.__target,this.composed));return this.__composedPath},get target(){return jd(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
(this.__relatedTargetComposedPath=hd(this.__relatedTarget,!0));return jd(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.va=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.va=this.__immediatePropagationStopped=!0}},ld=G.j&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");
ld&&(Object.defineProperty(kd,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(kd,"__shady_native_eventPhase",ld));function md(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var nd={focus:!0,blur:!0};function od(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}
function pd(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!od(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}var qd=(new Event("e")).hasOwnProperty("currentTarget");
function rd(a){a=qd?Object.create(a):a;var b=a.composedPath(),c=b.map(function(p){return jd(p,b)}),d=a.bubbles,e=Object.getOwnPropertyDescriptor(a,"currentTarget");Object.defineProperty(a,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return k}});var f=Event.CAPTURING_PHASE,g=Object.getOwnPropertyDescriptor(a,"eventPhase");Object.defineProperty(a,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return f}});try{for(var h=b.length-1;h>=0;h--){var k=b[h];f=k===c[h]?Event.AT_TARGET:
Event.CAPTURING_PHASE;pd(a,k,"capture");if(a.va)return}for(h=0;h<b.length;h++){k=b[h];var l=k===c[h];if(l||d)if(f=l?Event.AT_TARGET:Event.BUBBLING_PHASE,pd(a,k,"bubble"),a.va)break}}finally{qd||(e?Object.defineProperty(a,"currentTarget",e):delete a.currentTarget,g?Object.defineProperty(a,"eventPhase",g):delete a.eventPhase)}}function sd(a,b,c,d){for(var e=0;e<a.length;e++){var f=a[e],g=f.type,h=f.capture;if(b===f.node&&c===g&&d===h)return e}return-1}
function td(a){xc();return!G.ba&&this instanceof Node&&!ic(document,this)?(a.__target||ud(a,this),rd(a)):this.__shady_native_dispatchEvent(a)}
function vd(a,b,c){var d=this,e=dd(c),f=e.capture,g=e.once,h=e.tb;e=e.qb;if(b){var k=typeof b;if(k==="function"||k==="object")if(k!=="object"||b.handleEvent&&typeof b.handleEvent==="function"){if(fd[a])return this.__shady_native_addEventListener(a,b,e);var l=h||this;if(h=b[ad]){if(sd(h,l,a,f)>-1)return}else b[ad]=[];h=function(p){g&&d.__shady_removeEventListener(a,b,c);p.__target||ud(p);if(l!==d){var v=Object.getOwnPropertyDescriptor(p,"currentTarget");Object.defineProperty(p,"currentTarget",{get:function(){return l},
configurable:!0});var B=Object.getOwnPropertyDescriptor(p,"eventPhase");Object.defineProperty(p,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return f?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}p.__previousCurrentTarget=p.currentTarget;if(!H(l)&&l.localName!=="slot"||p.composedPath().indexOf(l)!=-1)if(p.composed||p.composedPath().indexOf(l)>-1)if(od(p)&&p.target===p.relatedTarget)p.eventPhase===Event.BUBBLING_PHASE&&p.stopImmediatePropagation();else if(p.eventPhase===Event.CAPTURING_PHASE||
p.bubbles||p.target===l||l instanceof Window){var Z=k==="function"?b.call(l,p):b.handleEvent&&b.handleEvent(p);l!==d&&(v?(Object.defineProperty(p,"currentTarget",v),v=null):delete p.currentTarget,B?(Object.defineProperty(p,"eventPhase",B),B=null):delete p.eventPhase);return Z}};b[ad].push({node:l,type:a,capture:f,ad:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][f?"capture":"bubble"].push(h);nd[a]||this.__shady_native_addEventListener(a,
h,e)}}}function wd(a,b,c){if(b){var d=dd(c);c=d.capture;var e=d.tb;d=d.qb;if(fd[a])return this.__shady_native_removeEventListener(a,b,d);var f=e||this;e=void 0;var g=null;try{g=b[ad]}catch(h){}g&&(f=sd(g,f,a,c),f>-1&&(e=g.splice(f,1)[0].ad,g.length||(b[ad]=void 0)));this.__shady_native_removeEventListener(a,e||b,d);e&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(e),b>-1&&a.splice(b,1))}}
function xd(){for(var a in nd)window.__shady_native_addEventListener(a,function(b){b.__target||(ud(b),rd(b))},!0)}var yd=J(kd);function ud(a,b){b=b===void 0?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(G.j){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;I(c,yd);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else I(a,yd)}var zd=md(Event),Ad=md(CustomEvent),Bd=md(MouseEvent);
function Cd(){if(!bd&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}
var Dd=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return a.substring(0,2)==="on"}),Ed=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return a.substring(0,2)==="on"});function Fd(a){return{set:function(b){var c=E(this),d=a.substring(2);c.J||(c.J={});c.J[a]&&this.removeEventListener(d,c.J[a]);this.__shady_addEventListener(d,b);c.J[a]=b},get:function(){var b=F(this);return b&&b.J&&b.J[a]},configurable:!0}};function Gd(a,b){return{index:a,ca:[],pa:b}}
function Hd(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(e==0&&f==0)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var l=c.length,p=0;p<k-g&&Id(a[--h],c[--l]);)p++;h=p}e+=g;f+=g;b-=h;d-=h;if(b-e==0&&d-f==0)return[];if(e==b){for(b=Gd(e,0);f<d;)b.ca.push(c[f++]);return[b]}if(f==d)return[Gd(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(p=1;p<h;p++)if(a[k+p-1]===c[g+l-1])b[l][p]=
b[l-1][p-1];else{var v=b[l-1][p]+1,B=b[l][p-1]+1;b[l][p]=v<B?v:B}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];k>0||g>0;)k==0?(a.push(2),g--):g==0?(a.push(3),k--):(h=b[k-1][g-1],l=b[k-1][g],p=b[k][g-1],v=l<p?l<h?l:h:p<h?p:h,v==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):v==l?(a.push(3),k--,d=l):(a.push(2),g--,d=p));a.reverse();b=void 0;k=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=Gd(e,0));b.pa++;e++;b.ca.push(c[f]);f++;break;case 2:b||(b=Gd(e,
0));b.pa++;e++;break;case 3:b||(b=Gd(e,0)),b.ca.push(c[f]),f++}b&&k.push(b);return k}function Id(a,b){return a===b};var Jd=J({dispatchEvent:td,addEventListener:vd,removeEventListener:wd});var Kd=null;function Ld(){Kd||(Kd=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return Kd||null}function Md(a,b,c){var d=Ld();return d&&b==="class"?(d.setElementClass(a,c),!0):!1}function Od(a,b){var c=Ld();c&&c.unscopeNode(a,b)}function Pd(a,b){var c=Ld();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)c=c&&Pd(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
function Qd(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=Ld();return b?b.currentScopeForNode(a):""}function Rd(a,b){if(a)for(a.nodeType===Node.ELEMENT_NODE&&b(a),a=a.__shady_firstChild;a;a=a.__shady_nextSibling)a.nodeType===Node.ELEMENT_NODE&&Rd(a,b)};var Sd=window.document,Td=G.ba,Ud=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Vd=Ud&&Ud.get;function Wd(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function Xd(a){var b=F(a);if(b&&b.ta!==void 0)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)Xd(b);if(a=F(a))a.ta=void 0}function Yd(a){var b=a;if(a&&a.localName==="slot"){var c=F(a);(c=c&&c.S)&&(b=c.length?c[0]:Yd(a.__shady_nextSibling))}return b}
function Zd(a,b,c){if(a=(a=F(a))&&a.aa){if(b)if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var d=0,e=b.childNodes.length;d<e;d++)a.addedNodes.push(b.childNodes[d]);else a.addedNodes.push(b);c&&a.removedNodes.push(c);zc(a)}}
var ce=J({get parentNode(){var a=F(this);a=a&&a.parentNode;return a!==void 0?a:this.__shady_native_parentNode},get firstChild(){var a=F(this);a=a&&a.firstChild;return a!==void 0?a:this.__shady_native_firstChild},get lastChild(){var a=F(this);a=a&&a.lastChild;return a!==void 0?a:this.__shady_native_lastChild},get nextSibling(){var a=F(this);a=a&&a.nextSibling;return a!==void 0?a:this.__shady_native_nextSibling},get previousSibling(){var a=F(this);a=a&&a.previousSibling;return a!==void 0?a:this.__shady_native_previousSibling},
get childNodes(){if(ac(this)){var a=F(this);if(!a.childNodes){a.childNodes=[];for(var b=this.__shady_firstChild;b;b=b.__shady_nextSibling)a.childNodes.push(b)}var c=a.childNodes}else c=this.__shady_native_childNodes;c.item=function(d){return c[d]};return c},get parentElement(){var a=F(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return a!==void 0?a:this.__shady_native_parentElement},get isConnected(){if(Vd&&Vd.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
var a=this.ownerDocument;if(a===null||ic(a,this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(H(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(ac(this)){for(var a=[],b=this.__shady_firstChild;b;b=b.__shady_nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.__shady_textContent);return a.join("")}return this.__shady_native_textContent},set textContent(a){if(typeof a==="undefined"||a===null)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!ac(this)&&
G.j){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&Wd(this);this.__shady_native_textContent=a}else Wd(this),(a.length>0||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==Sd&&a.ownerDocument!==Sd)return this.__shady_native_insertBefore(a,b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");
if(b){var c=F(b);c=c&&c.parentNode;if(c!==void 0&&c!==this||c===void 0&&b.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(b===a)return a;Zd(this,a);var d=[],e=(c=$d(this))?c.host.localName:Qd(this),f=a.__shady_parentNode;if(f){var g=Qd(a);var h=!!c||!$d(a)||Td&&this.__noInsertionPoint!==void 0;f.__shady_removeChild(a,h)}f=!0;var k=(!Td||a.__noInsertionPoint===void 0&&this.__noInsertionPoint===
void 0)&&!Pd(a,e),l=c&&!a.__noInsertionPoint&&(!Td||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(l||k)k&&(g=g||Qd(a)),Rd(a,function(p){l&&p.localName==="slot"&&d.push(p);if(k){var v=g;Ld()&&(v&&Od(p,v),(v=Ld())&&v.scopeNode(p,e))}});d.length&&(c.Pa(d),c.u());ac(this)&&(ae(a,this,b),h=F(this),h.root?(f=!1,bc(this)&&h.root.u()):c&&this.localName==="slot"&&(f=!1,c.u()));f?(c=H(this)?this.host:this,b?(b=Yd(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):a.ownerDocument!==this.ownerDocument&&
this.ownerDocument.adoptNode(a);return a},appendChild:function(a){if(this!=a||!H(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=b===void 0?!1:b;if(this.ownerDocument!==Sd)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);Zd(this,null,a);var c=$d(a),d=c&&c.fc(a),e=F(this);if(ac(this)&&(be(a,this),bc(this))){e.root.u();var f=!0}if(Ld()&&!b&&c&&a.nodeType!==Node.TEXT_NODE){var g=Qd(a);Rd(a,
function(h){Od(h,g)})}Xd(a);c&&((b=this.localName==="slot")&&(f=!0),(d||b)&&c.u());f||(f=H(this)?this.host:this,(!e.root&&a.localName!=="slot"||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if(this.localName=="template")return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==Node.ATTRIBUTE_NODE){a=this.__shady_firstChild;
for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=E(this),c=b.ta;c===void 0&&(H(this)?(c=this,b.ta=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.ta=c)));return c}},contains:function(a){return jc(this,a)}});var de=J({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&a.ka();return(a=F(this))&&a.assignedSlot||null}});/*

 Copyright (c) 2022 The Polymer Project Authors
 SPDX-License-Identifier: BSD-3-Clause
*/
var ee=new Map;[["(",{end:")",sa:!0}],["[",{end:"]",sa:!0}],['"',{end:'"',sa:!1}],["'",{end:"'",sa:!1}]].forEach(function(a){var b=t(a);a=b.next().value;b=b.next().value;ee.set(a,b)});function fe(a,b,c,d){for(d=d===void 0?!0:d;b<a.length;b++)if(a[b]==="\\"&&b<a.length-1&&a[b+1]!=="\n")b++;else{if(c.indexOf(a[b])!==-1)return b;if(d&&ee.has(a[b])){var e=ee.get(a[b]);b=fe(a,b+1,[e.end],e.sa)}}return a.length}
function ge(a){function b(){if(d.length>0){for(;d[d.length-1]===" ";)d.pop();c.push({mb:d.filter(function(k,l){return l%2===0}),zc:d.filter(function(k,l){return l%2===1})});d.length=0}}for(var c=[],d=[],e=0;e<a.length;){var f=d[d.length-1],g=fe(a,e,[","," ",">","+","~"]),h=g===e?a[e]:a.substring(e,g);if(h===",")b();else if([void 0," ",">","+","~"].indexOf(f)===-1||h!==" ")f===" "&&[">","+","~"].indexOf(h)!==-1?d[d.length-1]=h:d.push(h);e=g+(g===e?1:0)}b();return c};function he(a,b,c){var d=[];ie(a,b,c,d);return d}function ie(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,k=f(e);k&&h.push(e);g&&g(k)?e=k:(ie(e,f,g,h),e=void 0)}if(e)break}}
var je={get firstElementChild(){var a=F(this);if(a&&a.firstChild!==void 0){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=F(this);if(a&&a.lastChild!==void 0){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return ac(this)?kc(Array.prototype.filter.call(mc(this),
function(a){return a.nodeType===Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}},ke=J((je.append=function(){this.__shady_insertBefore(rc.apply(null,x(y.apply(0,arguments))),null)},je.prepend=function(){this.__shady_insertBefore(rc.apply(null,x(y.apply(0,arguments))),this.__shady_firstChild)},je.replaceChildren=function(){for(var a=y.apply(0,arguments),b;(b=this.__shady_firstChild)!==null;)this.__shady_removeChild(b);this.__shady_insertBefore(rc.apply(null,
x(a)),null)},je));
function le(a,b){function c(e,f){return(e===a||f.indexOf(":scope")===-1)&&dc.call(e,f)}var d=ge(b);if(d.length<1)return[];for(b=sc(he(a,function(){return!0}).map(function(e){return sc(d.map(function(f){var g=f.mb,h=g.length-1;return c(e,g[h])?{target:e,X:f,Z:e,index:h}:[]}))}));b.some(function(e){return e.index>0});)b=sc(b.map(function(e){if(e.index<=0)return e;var f=e.target,g=e.Z,h=e.X;e=e.index-1;var k=h.zc[e],l=h.mb[e];if(k===" "){k=[];for(g=g.__shady_parentElement;g;g=g.__shady_parentElement)c(g,l)&&
k.push({target:f,X:h,Z:g,index:e});return k}if(k===">")return g=g.__shady_parentElement,c(g,l)?{target:f,X:h,Z:g,index:e}:[];if(k==="+")return(g=g.__shady_previousElementSibling)&&c(g,l)?{target:f,X:h,Z:g,index:e}:[];if(k==="~"){k=[];for(g=g.__shady_previousElementSibling;g;g=g.__shady_previousElementSibling)c(g,l)&&k.push({target:f,X:h,Z:g,index:e});return k}throw Error("Unrecognized combinator: '"+k+"'.");}));return tc(b.map(function(e){return e.target}))}
var me=G.querySelectorImplementation,ne=J({querySelector:function(a){if(me==="native"){var b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a)),c=this.__shady_getRootNode();b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.__shady_getRootNode()==c)return d;return null}if(me==="selectorEngine")return le(this,a)[0]||null;if(me===void 0)return he(this,function(e){return dc.call(e,a)},function(e){return!!e})[0]||null;throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+
(me+"'"));},querySelectorAll:function(a,b){if(b||me==="native"){b=Array.prototype.slice.call((this instanceof ShadowRoot?this.host:this).__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return kc(b.filter(function(d){return d.__shady_getRootNode()==c}))}if(me==="selectorEngine")return kc(le(this,a));if(me===void 0)return kc(he(this,function(d){return dc.call(d,a)}));throw Error("Unrecognized value of ShadyDOM.querySelectorImplementation: '"+(me+"'"));}}),oe=G.ba&&!G.noPatch?pc({},
ke):ke;pc(ke,ne);/*

Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var pe=J({after:function(){var a=this.__shady_parentNode;if(a!==null){var b=this.__shady_nextSibling;a.__shady_insertBefore(rc.apply(null,x(y.apply(0,arguments))),b)}},before:function(){var a=this.__shady_parentNode;a!==null&&a.__shady_insertBefore(rc.apply(null,x(y.apply(0,arguments))),this)},remove:function(){var a=this.__shady_parentNode;a!==null&&a.__shady_removeChild(this)},replaceWith:function(){var a=y.apply(0,arguments),b=this.__shady_parentNode;if(b!==null){var c=this.__shady_nextSibling;
b.__shady_removeChild(this);b.__shady_insertBefore(rc.apply(null,x(a)),c)}}});var qe=window.document;function re(a,b){b==="slot"?(a=a.__shady_parentNode,bc(a)&&F(a).root.u()):a.localName==="slot"&&b==="name"&&(b=$d(a))&&(b.uc(a),b.u())}
var se=J({get previousElementSibling(){var a=F(this);if(a&&a.previousSibling!==void 0){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=F(this);if(a&&a.nextSibling!==void 0){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},
set slot(a){this.__shady_setAttribute("slot",a)},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==qe?this.__shady_native_setAttribute(a,b):Md(this,a,b)||(this.__shady_native_setAttribute(a,b),re(this,a))},removeAttribute:function(a){this.ownerDocument!==qe?this.__shady_native_removeAttribute(a):Md(this,a,"")?this.getAttribute(a)===""&&this.__shady_native_removeAttribute(a):(this.__shady_native_removeAttribute(a),
re(this,a))},toggleAttribute:function(a,b){if(this.ownerDocument!==qe)return this.__shady_native_toggleAttribute(a,b);if(!Md(this,a,""))return b=this.__shady_native_toggleAttribute(a,b),re(this,a),b;if(this.getAttribute(a)===""&&!b)return this.__shady_native_toggleAttribute(a,b)}});G.ba||Dd.forEach(function(a){se[a]=Fd(a)});
var we=J({attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!G.xb){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;b.Za(this,a);te(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;a&&a.length&&(b.Pa(a),b.u());b.host.__shady_native_appendChild(b)}else b=new ue(ve,this,a);return this.__CE_shadowRoot=b},get shadowRoot(){var a=F(this);return a&&a.Oc||null}});
pc(se,we);var xe=document.implementation.createHTMLDocument("inert"),ye=J({get innerHTML(){return ac(this)?Jc(this.localName==="template"?this.content:this,mc):this.__shady_native_innerHTML},set innerHTML(a){if(this.localName==="template")this.__shady_native_innerHTML=a;else{Wd(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==xe.namespaceURI?xe.createElementNS(this.namespaceURI,b):xe.createElement(b);for(G.j?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var ze=J({blur:function(){var a=F(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});G.ba||Ed.forEach(function(a){ze[a]=Fd(a)});var Ae=J({assignedNodes:function(a){if(this.localName==="slot"){var b=this.__shady_getRootNode();b&&H(b)&&b.ka();return(b=F(this))?(a&&a.flatten?b.S:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if(this.localName!=="slot"||a==="slotchange")vd.call(this,a,b,c);else{typeof c!=="object"&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.K=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
b,c){if(this.localName!=="slot"||a==="slotchange")wd.call(this,a,b,c);else{typeof c!=="object"&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.K=this;d.__shady_removeEventListener(a,b,c)}}});var Be=J({getElementById:function(a){return a===""?null:he(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});function Ce(a,b){for(var c;b&&!a.has(c=b.__shady_getRootNode());)b=c.host;return b}function De(a){var b=new Set;for(b.add(a);H(a)&&a.host;)a=a.host.__shady_getRootNode(),b.add(a);return b}
var Ee="__shady_native_"+$b(),Fe=J({get activeElement(){var a=G.j?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!H(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=$d(a);b&&b!==this;)a=b.host,b=$d(a);return this===document?b?null:a:b===this?a:null},elementsFromPoint:function(a,b){a=document[Ee](a,b);if(this===document&&G.useNativeDocumentEFP)return a;a=[].slice.call(a);b=De(this);for(var c=new Set,
d=0;d<a.length;d++)c.add(Ce(b,a[d]));var e=[];c.forEach(function(f){return e.push(f)});return e},elementFromPoint:function(a,b){return this===document&&G.useNativeDocumentEFP?this.__shady_native_elementFromPoint(a,b):this.__shady_elementsFromPoint(a,b)[0]||null}});var Ge=window.document,He=J({importNode:function(a,b){if(a.ownerDocument!==Ge||a.localName==="template")return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b)for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b=this.__shady_importNode(a,!0),c.__shady_appendChild(b);return c}});var Ie=J({dispatchEvent:td,addEventListener:vd.bind(window),removeEventListener:wd.bind(window)});var Je={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(Je.parentElement=ce.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(Je.contains=ce.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(Je.children=ke.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(Je.innerHTML=ye.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(Je.className=se.className);
var N={EventTarget:[Jd],Node:[ce,window.EventTarget?null:Jd],Text:[de],Comment:[de],CDATASection:[de],ProcessingInstruction:[de],Element:[se,ke,pe,de,!G.j||"innerHTML"in Element.prototype?ye:null,window.HTMLSlotElement?null:Ae],HTMLElement:[ze,Je],HTMLSlotElement:[Ae],DocumentFragment:[oe,Be],Document:[He,oe,Be,Fe],Window:[Ie],CharacterData:[pe],XMLHttpRequest:[window.EventTarget?null:Jd]},Ke=G.j?null:["innerHTML","textContent"];
function Le(a,b,c,d){b.forEach(function(e){return a&&e&&I(a,e,c,d)})}function Me(a){var b=a?null:Ke,c;for(c in N)Le(window[c]&&window[c].prototype,N[c],a,b)}["Text","Comment","CDATASection","ProcessingInstruction"].forEach(function(a){var b=window[a],c=Object.create(b.prototype);c.__shady_protoIsPatched=!0;Le(c,N.EventTarget);Le(c,N.Node);N[a]&&Le(c,N[a]);b.prototype.__shady_patchedProto=c});
function Ne(a){a.__shady_protoIsPatched=!0;Le(a,N.EventTarget);Le(a,N.Node);Le(a,N.Element);Le(a,N.HTMLElement);Le(a,N.HTMLSlotElement);return a};var Oe=G.Ka,Pe=G.j;function Qe(a,b){if(Oe&&!a.__shady_protoIsPatched&&!H(a)){var c=Object.getPrototypeOf(a),d=c.hasOwnProperty("__shady_patchedProto")&&c.__shady_patchedProto;d||(d=Object.create(c),Ne(d),c.__shady_patchedProto=d);Object.setPrototypeOf(a,d)}Pe||(b===1?Zc(a):b===2&&$c(a))}
function Re(a,b,c,d){Qe(a,1);d=d||null;var e=E(a),f=d?E(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=F(e.previousSibling))f.nextSibling=a;if(f=F(e.nextSibling=d))f.previousSibling=a;e.parentNode=b;d?d===c.firstChild&&(c.firstChild=a):(c.lastChild=a,c.firstChild||(c.firstChild=a));c.childNodes=null}
function ae(a,b,c){Qe(b,2);var d=E(b);d.firstChild!==void 0&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)Re(a,b,d,c);else Re(a,b,d,c)}
function be(a,b){var c=E(a);b=E(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(E(a).nextSibling=d);d&&(E(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;b.childNodes!==void 0&&(b.childNodes=null)}
function te(a,b){var c=E(a);if(b||c.firstChild===void 0){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;Qe(a,2);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=E(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;Qe(c,1)}}};var Se=J({addEventListener:function(a,b,c){typeof c!=="object"&&(c={capture:!!c});c.K=c.K||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){typeof c!=="object"&&(c={capture:!!c});c.K=c.K||this;this.host.__shady_removeEventListener(a,b,c)}});function Te(a,b){I(a,Se,b);I(a,Fe,b);I(a,ye,b);I(a,ke,b);G.noPatch&&!b?(I(a,ce,b),I(a,Be,b)):G.j||(I(a,Wc),I(a,Uc),I(a,Vc))};var ve={},Ue=G.deferConnectionCallbacks&&document.readyState==="loading",Ve;function We(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function ue(a,b,c){if(a!==ve)throw new TypeError("Illegal constructor");this.g=null;this.Za(b,c)}n=ue.prototype;
n.Za=function(a,b){this.host=a;this.mode=b&&b.mode;te(this.host);a=E(this.host);a.root=this;a.Oc=this.mode!=="closed"?this:null;a=E(this);a.firstChild=a.lastChild=a.parentNode=a.nextSibling=a.previousSibling=null;if(G.preferPerformance)for(;a=this.host.__shady_native_firstChild;)this.host.__shady_native_removeChild(a);else this.u()};n.u=function(){var a=this;this.P||(this.P=!0,wc(function(){return a.ka()}))};n.Tb=function(){for(var a,b=this;b;)b.P&&(a=b),b=b.Sb();return a};
n.Sb=function(){var a=this.host.__shady_getRootNode();if(H(a)){var b=F(this.host);if(b&&b.fa>0)return a}};n.ka=function(){var a=this.P&&this.Tb();a&&a._renderSelf()};n.Ob=function(){!this.Ya&&this.P&&this.ka()};
n._renderSelf=function(){var a=Ue;Ue=!0;this.P=!1;this.g&&(this.Jb(),this.Hb());if(!G.preferPerformance&&!this.Ya)for(var b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling){var c=F(b);b.__shady_native_parentNode!==this.host||b.localName!=="slot"&&c.assignedSlot||this.host.__shady_native_removeChild(b)}this.Ya=!0;Ue=a;Ve&&Ve()};
n.Jb=function(){this.oa();for(var a=0,b;a<this.g.length;a++)b=this.g[a],this.Gb(b);for(a=this.host.__shady_firstChild;a;a=a.__shady_nextSibling)this.Sa(a);for(a=0;a<this.g.length;a++){b=this.g[a];var c=F(b);if(!c.assignedNodes.length)for(var d=b.__shady_firstChild;d;d=d.__shady_nextSibling)this.Sa(d,b);(d=(d=F(b.__shady_parentNode))&&d.root)&&(d.Xa()||d.P)&&d._renderSelf();this.Oa(c.S,c.assignedNodes);if(d=c.eb){for(var e=0;e<d.length;e++)F(d[e]).Ca=null;c.eb=null;d.length>c.assignedNodes.length&&
(c.Ha=!0)}c.Ha&&(c.Ha=!1,this.Ua(b))}};n.Sa=function(a,b){var c=E(a),d=c.Ca;c.Ca=null;b||(b=(b=this.i[a.__shady_slot||"__catchall"])&&b[0]);b?(E(b).assignedNodes.push(a),c.assignedSlot=b):c.assignedSlot=void 0;d!==c.assignedSlot&&c.assignedSlot&&(E(c.assignedSlot).Ha=!0)};n.Gb=function(a){var b=F(a),c=b.assignedNodes;b.assignedNodes=[];b.S=[];if(b.eb=c)for(b=0;b<c.length;b++){var d=F(c[b]);d.Ca=d.assignedSlot;d.assignedSlot===a&&(d.assignedSlot=null)}};
n.Oa=function(a,b){for(var c=0,d=void 0;c<b.length&&(d=b[c]);c++)if(d.localName=="slot"){var e=F(d).assignedNodes;e&&e.length&&this.Oa(a,e)}else a.push(b[c])};n.Ua=function(a){a.__shady_native_dispatchEvent(new Event("slotchange"));a=F(a);a.assignedSlot&&this.Ua(a.assignedSlot)};n.Hb=function(){for(var a=this.g,b=[],c=0;c<a.length;c++){var d=a[c].__shady_parentNode,e=F(d);e&&e.root||!(b.indexOf(d)<0)||b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.tc(c===this?this.host:c,this.Ib(c))};
n.Ib=function(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)if(this.Wb(a))for(var c=F(a).S,d=0;d<c.length;d++)b.push(c[d]);else b.push(a);return b};n.Wb=function(a){return a.localName=="slot"};
n.tc=function(a,b){for(var c=lc(a),d=Hd(b,b.length,c,c.length),e=0,f=0,g=void 0;e<d.length&&(g=d[e]);e++){for(var h=0,k=void 0;h<g.ca.length&&(k=g.ca[h]);h++)k.__shady_native_parentNode===a&&a.__shady_native_removeChild(k),c.splice(g.index+f,1);f-=g.pa}e=0;for(f=void 0;e<d.length&&(f=d[e]);e++)for(g=c[f.index],h=f.index;h<f.index+f.pa;h++)k=b[h],a.__shady_native_insertBefore(k,g),c.splice(h,0,k)};n.Nb=function(){this.H=this.H||[];this.g=this.g||[];this.i=this.i||{}};
n.Pa=function(a){this.Nb();this.H.push.apply(this.H,x(a))};n.oa=function(){this.H&&this.H.length&&(this.ac(this.H),this.H=[])};n.ac=function(a){for(var b,c=0;c<a.length;c++){var d=a[c];te(d);var e=d.__shady_parentNode;te(e);e=F(e);e.fa=(e.fa||0)+1;e=this.bb(d);this.i[e]?(b=b||{},b[e]=!0,this.i[e].push(d)):this.i[e]=[d];this.g.push(d)}if(b)for(var f in b)this.i[f]=this.hb(this.i[f])};n.bb=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Bb=b};
n.hb=function(a){return a.sort(function(b,c){b=We(b);for(var d=We(c),e=0;e<b.length;e++){c=b[e];var f=d[e];if(c!==f)return b=mc(c.__shady_parentNode),b.indexOf(c)-b.indexOf(f)}})};n.fc=function(a){if(this.g){this.oa();var b=this.i,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e];if(jc(a,f)){d.splice(e,1);var g=this.g.indexOf(f);g>=0&&(this.g.splice(g,1),(g=F(f.__shady_parentNode))&&g.fa&&g.fa--);e--;this.hc(f);g=!0}}return g}};
n.uc=function(a){if(this.g){this.oa();var b=a.Bb,c=this.bb(a);if(c!==b){b=this.i[b];var d=b.indexOf(a);d>=0&&b.splice(d,1);b=this.i[c]||(this.i[c]=[]);b.push(a);b.length>1&&(this.i[c]=this.hb(b))}}};n.hc=function(a){a=F(a);var b=a.S;if(b)for(var c=0;c<b.length;c++){var d=b[c],e=d.__shady_native_parentNode;e&&e.__shady_native_removeChild(d)}a.S=[];a.assignedNodes=[]};n.Xa=function(){this.oa();return!(!this.g||!this.g.length)};
(function(a){a.__proto__=DocumentFragment.prototype;Te(a,"__shady_");Te(a);Object.defineProperties(a,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}});["localName","namespaceURI","prefix"].forEach(function(b){Object.defineProperty(a,b,{value:void 0,configurable:!0})});["ownerDocument","baseURI","isConnected"].forEach(function(b){Object.defineProperty(a,b,{get:function(){return this.host[b]},
configurable:!0})})})(ue.prototype);
if(window.customElements&&window.customElements.define&&G.inUse&&!G.preferPerformance){var Xe=new Map;Ve=function(){var a=[];Xe.forEach(function(d,e){a.push([e,d])});Xe.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};Ue&&document.addEventListener("readystatechange",function(){Ue=!1;Ve()},{once:!0});var Ye=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=
function(){Ue?Xe.set(this,!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){Ue?this.isConnected||Xe.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},Ze=window.customElements.define,$e=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;Ze.call(window.customElements,a,Ye(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=
$e;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:$e,configurable:!0})}function $d(a){a=a.__shady_getRootNode();if(H(a))return a};function af(a){this.node=a}n=af.prototype;n.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};n.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};n.appendChild=function(a){return this.node.__shady_appendChild(a)};n.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};n.removeChild=function(a){return this.node.__shady_removeChild(a)};n.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
n.cloneNode=function(a){return this.node.__shady_cloneNode(a)};n.getRootNode=function(a){return this.node.__shady_getRootNode(a)};n.contains=function(a){return this.node.__shady_contains(a)};n.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};n.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};n.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};n.hasAttribute=function(a){return this.node.__shady_native_hasAttribute(a)};n.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
n.toggleAttribute=function(a,b){return this.node.__shady_toggleAttribute(a,b)};n.attachShadow=function(a){return this.node.__shady_attachShadow(a)};n.focus=function(){this.node.__shady_native_focus()};n.blur=function(){this.node.__shady_blur()};n.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};n.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};
n.elementsFromPoint=function(a,b){return this.node.__shady_elementsFromPoint(a,b)};n.elementFromPoint=function(a,b){return this.node.__shady_elementFromPoint(a,b)};n.querySelector=function(a){return this.node.__shady_querySelector(a)};n.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};n.assignedNodes=function(a){if(this.node.localName==="slot")return this.node.__shady_assignedNodes(a)};n.append=function(){return this.node.__shady_append.apply(this.node,x(y.apply(0,arguments)))};
n.prepend=function(){return this.node.__shady_prepend.apply(this.node,x(y.apply(0,arguments)))};n.replaceChildren=function(){return this.node.__shady_replaceChildren.apply(this.node,x(y.apply(0,arguments)))};n.after=function(){return this.node.__shady_after.apply(this.node,x(y.apply(0,arguments)))};n.before=function(){return this.node.__shady_before.apply(this.node,x(y.apply(0,arguments)))};n.remove=function(){return this.node.__shady_remove()};
n.replaceWith=function(){return this.node.__shady_replaceWith.apply(this.node,x(y.apply(0,arguments)))};
ca.Object.defineProperties(af.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(H(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(H(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,
get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},
children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(a){this.node.__shady_innerHTML=a}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(a){this.node.__shady_textContent=a}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(a){this.node.__shady_slot=a}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(a){this.node.__shady_className=
a}}});function bf(a){Object.defineProperty(af.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})}Dd.forEach(function(a){return bf(a)});Ed.forEach(function(a){return bf(a)});var cf=new WeakMap;function df(a){if(H(a)||a instanceof af)return a;var b=cf.get(a);b||(b=new af(a),cf.set(a,b));return b};if(G.inUse){var ef=G.j?function(a){return a}:function(a){$c(a);Zc(a);return a};window.ShadyDOM={inUse:G.inUse,patch:ef,isShadyRoot:H,enqueue:wc,flush:xc,flushInitial:function(a){a.Ob()},settings:G,filterMutations:Cc,observeChildren:Ac,unobserveChildren:Bc,deferConnectionCallbacks:G.deferConnectionCallbacks,preferPerformance:G.preferPerformance,handlesDynamicScoping:!0,wrap:G.noPatch?df:ef,wrapIfNeeded:G.noPatch===!0?df:function(a){return a},Wrapper:af,composedPath:id,noPatch:G.noPatch,patchOnDemand:G.Ka,
nativeMethods:Lc,nativeTree:Mc,patchElementProto:Ne,querySelectorImplementation:G.querySelectorImplementation};Tc();Me("__shady_");Object.defineProperty(document,"_activeElement",Fe.activeElement);I(Window.prototype,Ie,"__shady_");G.noPatch?G.Ka&&I(Element.prototype,we):(Me(),Cd());xd();window.Event=zd;window.CustomEvent=Ad;window.MouseEvent=Bd;window.ShadowRoot=ue};var ff=window.Document.prototype.createElement,gf=window.Document.prototype.createElementNS,hf=window.Document.prototype.importNode,jf=window.Document.prototype.prepend,kf=window.Document.prototype.append,lf=window.DocumentFragment.prototype.prepend,mf=window.DocumentFragment.prototype.append,nf=window.Node.prototype.cloneNode,of=window.Node.prototype.appendChild,pf=window.Node.prototype.insertBefore,qf=window.Node.prototype.removeChild,rf=window.Node.prototype.replaceChild,sf=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),tf=window.Element.prototype.attachShadow,uf=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),vf=window.Element.prototype.getAttribute,wf=window.Element.prototype.setAttribute,xf=window.Element.prototype.removeAttribute,yf=window.Element.prototype.toggleAttribute,zf=window.Element.prototype.getAttributeNS,Af=window.Element.prototype.setAttributeNS,Bf=window.Element.prototype.removeAttributeNS,Cf=window.Element.prototype.insertAdjacentElement,Df=window.Element.prototype.insertAdjacentHTML,
Ef=window.Element.prototype.prepend,Ff=window.Element.prototype.append,Gf=window.Element.prototype.before,Hf=window.Element.prototype.after,If=window.Element.prototype.replaceWith,Jf=window.Element.prototype.remove,Kf=window.HTMLElement,Lf=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Mf=window.HTMLElement.prototype.insertAdjacentElement,Nf=window.HTMLElement.prototype.insertAdjacentHTML;var Of=function(){var a=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(b){return a.add(b)});return a}();function Pf(a){var b=Of.has(a);a=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(a);return!b&&a}var Qf=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
function O(a){var b=a.isConnected;if(b!==void 0)return b;if(Qf(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function Rf(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
function Sf(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function Tf(a,b,c){for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if(f==="link"&&e.getAttribute("rel")==="import"){d=e.import;c===void 0&&(c=new Set);if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)Tf(d,b,c);d=Sf(a,e);continue}else if(f==="template"){d=Sf(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)Tf(e,b,c)}d=d.firstChild?d.firstChild:Sf(a,d)}};function Uf(){var a=!(Vf==null||!Vf.noDocumentConstructionObserver),b=!(Vf==null||!Vf.shadyDomFastWalk);this.W=[];this.Ba=[];this.N=!1;this.shadyDomFastWalk=b;this.Xc=!a}function Wf(a,b,c,d){var e=window.ShadyDOM;if(a.shadyDomFastWalk&&e&&e.inUse){if(b.nodeType===Node.ELEMENT_NODE&&c(b),b.querySelectorAll)for(a=e.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)c(a[b])}else Tf(b,c,d)}function Xf(a,b){a.N=!0;a.W.push(b)}function Yf(a,b){a.N=!0;a.Ba.push(b)}
function Zf(a,b){a.N&&Wf(a,b,function(c){return $f(a,c)})}function $f(a,b){if(a.N&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.W.length;c++)a.W[c](b);for(c=0;c<a.Ba.length;c++)a.Ba[c](b)}}function P(a,b){var c=[];Wf(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];d.__CE_state===1?a.connectedCallback(d):ag(a,d)}}function R(a,b){var c=[];Wf(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];d.__CE_state===1&&a.disconnectedCallback(d)}}
function bg(a,b,c){c=c===void 0?{}:c;var d=c.Yc,e=c.upgrade||function(g){return ag(a,g)},f=[];Wf(a,b,function(g){a.N&&$f(a,g);if(g.localName==="link"&&g.getAttribute("rel")==="import"){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&h.readyState==="complete"?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var l=new Set;d&&(d.forEach(function(p){return l.add(p)}),
l.delete(k));bg(a,k,{Yc:l,upgrade:e})}})}else f.push(g)},d);for(b=0;b<f.length;b++)e(f[b])}function ag(a,b){try{var c=a.Zb(b.ownerDocument,b.localName);c&&a.vc(b,c)}catch(d){cg(d)}}n=Uf.prototype;
n.vc=function(a,b){if(a.__CE_state===void 0){b.constructionStack.push(a);try{try{if(new b.constructorFunction!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback&&a.hasAttributes()){b=b.observedAttributes;for(var c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);e!==null&&this.attributeChangedCallback(a,d,null,e,null)}}O(a)&&
this.connectedCallback(a)}};n.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){cg(c)}};n.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){cg(c)}};n.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;if(f.attributeChangedCallback&&f.observedAttributes.indexOf(b)>-1)try{f.attributeChangedCallback.call(a,b,c,d,e)}catch(g){cg(g)}};
n.Zb=function(a,b){var c=a.__CE_registry;if(c&&(a.defaultView||a.__CE_isImportDocument))return dg(c,b)};
function eg(a,b,c,d){var e=b.__CE_registry;if(e&&(d===null||d==="http://www.w3.org/1999/xhtml")&&(e=dg(e,c)))try{var f=new e.constructorFunction;if(f.__CE_state===void 0||f.__CE_definition===void 0)throw Error("Failed to construct '"+c+"': The returned value was not constructed with the HTMLElement constructor.");if(f.namespaceURI!=="http://www.w3.org/1999/xhtml")throw Error("Failed to construct '"+c+"': The constructed element's namespace must be the HTML namespace.");if(f.hasAttributes())throw Error("Failed to construct '"+
c+"': The constructed element must not have any attributes.");if(f.firstChild!==null)throw Error("Failed to construct '"+c+"': The constructed element must not have any children.");if(f.parentNode!==null)throw Error("Failed to construct '"+c+"': The constructed element must not have a parent node.");if(f.ownerDocument!==b)throw Error("Failed to construct '"+c+"': The constructed element's owner document is incorrect.");if(f.localName!==c)throw Error("Failed to construct '"+c+"': The constructed element's local name is incorrect.");
return f}catch(g){return cg(g),b=d===null?ff.call(b,c):gf.call(b,d,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,$f(a,b),b}b=d===null?ff.call(b,c):gf.call(b,d,c);$f(a,b);return b}
function cg(a){var b="",c="",d=0,e=0;a instanceof Error?(b=a.message,c=a.sourceURL||a.fileName||"",d=a.line||a.lineNumber||0,e=a.column||a.columnNumber||0):b="Uncaught "+String(a);var f=void 0;ErrorEvent.prototype.initErrorEvent===void 0?f=new ErrorEvent("error",{cancelable:!0,message:b,filename:c,lineno:d,colno:e,error:a}):(f=document.createEvent("ErrorEvent"),f.initErrorEvent("error",!1,!0,b,c,d),f.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});
f.error===void 0&&Object.defineProperty(f,"error",{configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(f);f.defaultPrevented||console.error(a)};function fg(){var a=this;this.s=void 0;this.fb=new Promise(function(b){a.kc=b})}fg.prototype.resolve=function(a){if(this.s)throw Error("Already resolved.");this.s=a;this.kc(a)};function gg(a){var b=document;this.O=void 0;this.G=a;this.ga=b;bg(this.G,this.ga);this.ga.readyState==="loading"&&(this.O=new MutationObserver(this.Vb.bind(this)),this.O.observe(this.ga,{childList:!0,subtree:!0}))}gg.prototype.disconnect=function(){this.O&&this.O.disconnect()};gg.prototype.Vb=function(a){var b=this.ga.readyState;b!=="interactive"&&b!=="complete"||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)bg(this.G,c[d])};function S(a){this.ia=new Map;this.ja=new Map;this.Ra=new Map;this.ya=!1;this.Ga=new Map;this.ha=function(b){return b()};this.M=!1;this.na=[];this.G=a;this.Ta=a.Xc?new gg(a):void 0}n=S.prototype;n.Nc=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");hg(this,a);this.ia.set(a,b);this.na.push(a);this.M||(this.M=!0,this.ha(function(){return c.Va()}))};
n.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");hg(this,a);ig(this,a,b);this.na.push(a);this.M||(this.M=!0,this.ha(function(){return c.Va()}))};
function hg(a,b){if(!Pf(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(dg(a,b)&&!window.enableHotReplacement)throw Error("A custom element with name '"+(b+"' has already been defined."));if(a.ya)throw Error("A custom element is already being defined.");}
function ig(a,b,c){a.ya=!0;var d;try{var e=c.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=function(p){var v=e[p];if(v!==void 0&&!(v instanceof Function))throw Error("The '"+p+"' callback must be a function.");return v};var g=f("connectedCallback");var h=f("disconnectedCallback");var k=f("adoptedCallback");var l=(d=f("attributeChangedCallback"))&&c.observedAttributes||[]}catch(p){throw p;}finally{a.ya=!1}c={localName:b,
constructorFunction:c,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:l,constructionStack:[]};a.ja.set(b,c);a.Ra.set(c.constructorFunction,c);return c}n.upgrade=function(a){bg(this.G,a)};
n.Va=function(){var a=this;if(this.M!==!1){this.M=!1;for(var b=[],c=this.na,d=new Map,e=0;e<c.length;e++)d.set(c[e],[]);bg(this.G,document,{upgrade:function(k){if(k.__CE_state===void 0){var l=k.localName,p=d.get(l);p?p.push(k):a.ja.has(l)&&b.push(k)}}});for(e=0;e<b.length;e++)ag(this.G,b[e]);for(e=0;e<c.length;e++){for(var f=c[e],g=d.get(f),h=0;h<g.length;h++)ag(this.G,g[h]);(f=this.Ga.get(f))&&f.resolve(void 0)}c.length=0}};n.get=function(a){if(a=dg(this,a))return a.constructorFunction};
n.whenDefined=function(a){if(!Pf(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.Ga.get(a);if(b)return b.fb;b=new fg;this.Ga.set(a,b);var c=this.ja.has(a)||this.ia.has(a);a=this.na.indexOf(a)===-1;c&&a&&b.resolve(void 0);return b.fb};n.polyfillWrapFlushCallback=function(a){this.Ta&&this.Ta.disconnect();var b=this.ha;this.ha=function(c){return a(function(){return b(c)})}};
function dg(a,b){var c=a.ja.get(b);if(c)return c;if(c=a.ia.get(b)){a.ia.delete(b);try{return ig(a,b,c())}catch(d){cg(d)}}}S.prototype.define=S.prototype.define;S.prototype.upgrade=S.prototype.upgrade;S.prototype.get=S.prototype.get;S.prototype.whenDefined=S.prototype.whenDefined;S.prototype.polyfillDefineLazy=S.prototype.Nc;S.prototype.polyfillWrapFlushCallback=S.prototype.polyfillWrapFlushCallback;function jg(a,b,c){function d(e){return function(){for(var f=y.apply(0,arguments),g=[],h=[],k=0;k<f.length;k++){var l=f[k];l instanceof Element&&O(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)g.push(l);else g.push(l)}e.apply(this,f);for(f=0;f<h.length;f++)R(a,h[f]);if(O(this))for(h=0;h<g.length;h++)f=g[h],f instanceof Element&&P(a,f)}}c.prepend!==void 0&&(b.prepend=d(c.prepend));c.append!==void 0&&(b.append=d(c.append))};function kg(a){Document.prototype.createElement=function(b){return eg(a,this,b,null)};Document.prototype.importNode=function(b,c){b=hf.call(this,b,!!c);this.__CE_registry?bg(a,b):Zf(a,b);return b};Document.prototype.createElementNS=function(b,c){return eg(a,this,c,b)};jg(a,Document.prototype,{prepend:jf,append:kf})};function lg(a){function b(d){return function(){for(var e=y.apply(0,arguments),f=[],g=[],h=0;h<e.length;h++){var k=e[h];k instanceof Element&&O(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)f.push(k);else f.push(k)}d.apply(this,e);for(e=0;e<g.length;e++)R(a,g[e]);if(O(this))for(g=0;g<f.length;g++)e=f[g],e instanceof Element&&P(a,e)}}var c=Element.prototype;Gf!==void 0&&(c.before=b(Gf));Hf!==void 0&&(c.after=b(Hf));If!==void 0&&(c.replaceWith=function(){for(var d=
y.apply(0,arguments),e=[],f=[],g=0;g<d.length;g++){var h=d[g];h instanceof Element&&O(h)&&f.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)e.push(h);else e.push(h)}g=O(this);If.apply(this,d);for(d=0;d<f.length;d++)R(a,f[d]);if(g)for(R(a,this),f=0;f<e.length;f++)d=e[f],d instanceof Element&&P(a,d)});Jf!==void 0&&(c.remove=function(){var d=O(this);Jf.call(this);d&&R(a,this)})};function mg(a){function b(e,f){Object.defineProperty(e,"innerHTML",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(g){var h=this,k=void 0;O(this)&&(k=[],Wf(a,this,function(v){v!==h&&k.push(v)}));f.set.call(this,g);if(k)for(var l=0;l<k.length;l++){var p=k[l];p.__CE_state===1&&a.disconnectedCallback(p)}this.ownerDocument.__CE_registry?bg(a,this):Zf(a,this);return g}})}function c(e,f){e.insertAdjacentElement=function(g,h){var k=O(h);g=f.call(this,g,h);k&&R(a,h);O(g)&&P(a,h);return g}}
function d(e,f){function g(h,k){for(var l=[];h!==k;h=h.nextSibling)l.push(h);for(k=0;k<l.length;k++)bg(a,l[k])}e.insertAdjacentHTML=function(h,k){h=h.toLowerCase();if(h==="beforebegin"){var l=this.previousSibling;f.call(this,h,k);g(l||this.parentNode.firstChild,this)}else if(h==="afterbegin")l=this.firstChild,f.call(this,h,k),g(this.firstChild,l);else if(h==="beforeend")l=this.lastChild,f.call(this,h,k),g(l||this.firstChild,null);else if(h==="afterend")l=this.nextSibling,f.call(this,h,k),g(this.nextSibling,
l);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");}}tf&&(Element.prototype.attachShadow=function(e){e=tf.call(this,e);if(a.N&&!e.__CE_patched){e.__CE_patched=!0;for(var f=0;f<a.W.length;f++)a.W[f](e)}return this.__CE_shadowRoot=e});uf&&uf.get?b(Element.prototype,uf):Lf&&Lf.get?b(HTMLElement.prototype,Lf):Yf(a,function(e){b(e,{enumerable:!0,configurable:!0,get:function(){return nf.call(this,!0).innerHTML},set:function(f){var g=
this.localName==="template",h=g?this.content:this,k=gf.call(document,this.namespaceURI,this.localName);for(k.innerHTML=f;h.childNodes.length>0;)qf.call(h,h.childNodes[0]);for(f=g?k.content:k;f.childNodes.length>0;)of.call(h,f.childNodes[0])}})});Element.prototype.setAttribute=function(e,f){if(this.__CE_state!==1)return wf.call(this,e,f);var g=vf.call(this,e);wf.call(this,e,f);f=vf.call(this,e);a.attributeChangedCallback(this,e,g,f,null)};Element.prototype.setAttributeNS=function(e,f,g){if(this.__CE_state!==
1)return Af.call(this,e,f,g);var h=zf.call(this,e,f);Af.call(this,e,f,g);g=zf.call(this,e,f);a.attributeChangedCallback(this,f,h,g,e)};Element.prototype.removeAttribute=function(e){if(this.__CE_state!==1)return xf.call(this,e);var f=vf.call(this,e);xf.call(this,e);f!==null&&a.attributeChangedCallback(this,e,f,null,null)};yf&&(Element.prototype.toggleAttribute=function(e,f){if(this.__CE_state!==1)return yf.call(this,e,f);var g=vf.call(this,e),h=g!==null;f=yf.call(this,e,f);if(h!==f){var k;a==null||
(k=a.attributeChangedCallback)==null||k.call(a,this,e,g,f?"":null,null)}return f});Element.prototype.removeAttributeNS=function(e,f){if(this.__CE_state!==1)return Bf.call(this,e,f);var g=zf.call(this,e,f);Bf.call(this,e,f);var h=zf.call(this,e,f);g!==h&&a.attributeChangedCallback(this,f,g,h,e)};Mf?c(HTMLElement.prototype,Mf):Cf&&c(Element.prototype,Cf);Nf?d(HTMLElement.prototype,Nf):Df&&d(Element.prototype,Df);jg(a,Element.prototype,{prepend:Ef,append:Ff});lg(a)};var ng={};function og(a){function b(){var c=this.constructor;var d=document.__CE_registry.Ra.get(c);if(!d)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var e=d.constructionStack;if(e.length===0)return e=ff.call(document,d.localName),Object.setPrototypeOf(e,c.prototype),e.__CE_state=1,e.__CE_definition=d,$f(a,e),e;var f=e.length-1,g=e[f];if(g===ng)throw Error("Failed to construct '"+d.localName+"': This element was already constructed.");e[f]=
ng;Object.setPrototypeOf(g,c.prototype);$f(a,g);return g}b.prototype=Kf.prototype;Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});window.HTMLElement=b};function pg(a){function b(c,d){Object.defineProperty(c,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,e);else{var f=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(h>0&&O(this)){f=Array(h);for(var k=0;k<h;k++)f[k]=g[k]}}d.set.call(this,e);if(f)for(e=0;e<f.length;e++)R(a,f[e])}}})}Node.prototype.insertBefore=function(c,d){if(c instanceof DocumentFragment){var e=Rf(c);c=pf.call(this,c,d);if(O(this))for(d=
0;d<e.length;d++)P(a,e[d]);return c}e=c instanceof Element&&O(c);d=pf.call(this,c,d);e&&R(a,c);O(this)&&P(a,c);return d};Node.prototype.appendChild=function(c){if(c instanceof DocumentFragment){var d=Rf(c);c=of.call(this,c);if(O(this))for(var e=0;e<d.length;e++)P(a,d[e]);return c}d=c instanceof Element&&O(c);e=of.call(this,c);d&&R(a,c);O(this)&&P(a,c);return e};Node.prototype.cloneNode=function(c){c=nf.call(this,!!c);this.ownerDocument.__CE_registry?bg(a,c):Zf(a,c);return c};Node.prototype.removeChild=
function(c){var d=c instanceof Element&&O(c),e=qf.call(this,c);d&&R(a,c);return e};Node.prototype.replaceChild=function(c,d){if(c instanceof DocumentFragment){var e=Rf(c);c=rf.call(this,c,d);if(O(this))for(R(a,d),d=0;d<e.length;d++)P(a,e[d]);return c}e=c instanceof Element&&O(c);var f=rf.call(this,c,d),g=O(this);g&&R(a,d);e&&R(a,c);g&&P(a,c);return f};sf&&sf.get?b(Node.prototype,sf):Xf(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){for(var d=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==
Node.COMMENT_NODE&&d.push(e.textContent);return d.join("")},set:function(d){for(;this.firstChild;)qf.call(this,this.firstChild);d!=null&&d!==""&&of.call(this,document.createTextNode(d))}})})};var Vf=window.customElements;function qg(){var a=new Uf;og(a);kg(a);jg(a,DocumentFragment.prototype,{prepend:lf,append:mf});pg(a);mg(a);window.CustomElementRegistry=S;a=new S(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}Vf&&!Vf.forcePolyfill&&typeof Vf.define=="function"&&typeof Vf.get=="function"||qg();window.__CE_installPolyfill=qg;/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
function rg(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}
function sg(a){var b=a=a.replace(tg,"").replace(ug,""),c=new rg;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if(b[e]==="{"){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null;d=new rg;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else b[e]==="}"&&(d.end=e+1,d=d.parent||c);return vg(c,a)}
function vg(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=_expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(c),c=c.replace(wg," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=c.indexOf("@")===0,a.atRule?c.indexOf("@media")===0?a.type=4:c.match(xg)&&(a.type=7,a.keyframesName=a.selector.split(wg).pop()):a.type=c.indexOf("--")===
0?1E3:1);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)vg(f,b);return a}function _expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var b=arguments[1],c=6-b.length;c--;)b="0"+b;return"\\"+b})}
function yg(a,b,c){c=c===void 0?"":c;var d="";if(a.cssText||a.rules){var e=a.rules;if(e&&!_hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(e))for(var f=0,g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=yg(h,b,d);else b?b=a.cssText:(b=a.cssText,b=b.replace(zg,"").replace(Ag,""),b=b.replace(Bg,"").replace(Cg,"")),(d=b.trim())&&(d="  "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
function _hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(a){a=a[0];return!!a&&!!a.selector&&a.selector.indexOf("--")===0}var tg=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ug=/@import[^;]*;/gim,zg=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Ag=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Bg=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Cg=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,xg=/^@[^\s]*keyframes/,wg=/\s+/g;var T=!(window.ShadyDOM&&window.ShadyDOM.inUse),Dg;function Eg(a){Dg=a&&a.shimcssproperties?!1:T||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var Fg;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Fg=window.ShadyCSS.cssBuild);var Kg=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Dg=window.ShadyCSS.nativeCss:window.ShadyCSS?(Eg(window.ShadyCSS),window.ShadyCSS=void 0):Eg(window.WebComponents&&window.WebComponents.flags);var U=Dg;var Lg=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Mg=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Ng=/(--[\w-]+)\s*([:,;)]|$)/gi,Og=/(animation\s*:)|(animation-name\s*:)/,Pg=/@media\s(.*)/,Qg=/\{[^}]*\}/g;var Rg=new Set;function Sg(a,b){if(!a)return"";typeof a==="string"&&(a=sg(a));b&&Tg(a,b);return yg(a,U)}function Ug(a){!a.__cssRules&&a.textContent&&(a.__cssRules=sg(a.textContent));return a.__cssRules||null}function Vg(a){return!!a.parent&&a.parent.type===7}function Tg(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===4){var g=a.selector.match(Pg);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===1?b(a):c&&f===7?c(a):f===1E3&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)Tg(g,b,c,d)}}
function Wg(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;if(window.enableHotReplacement&&(a=document.head.querySelector("style[scope="+b+"]")))return a.parentElement.replaceChild(e,a),e;Xg(e,c,d);return e}var Yg=null;function Zg(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(Yg?Yg.nextSibling:null)||b.firstChild);return Yg=a}
function Xg(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);Yg?a.compareDocumentPosition(Yg)===Node.DOCUMENT_POSITION_PRECEDING&&(Yg=a):Yg=a}function $g(a,b){for(var c=0,d=a.length;b<d;b++)if(a[b]==="(")c++;else if(a[b]===")"&&--c===0)return b;return-1}
function ah(a,b){var c=a.indexOf("var(");if(c===-1)return b(a,"","","");var d=$g(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=ah(a.substring(d+1),b);d=e.indexOf(",");return d===-1?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function bh(a,b){T?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}var ch=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};
function dh(a){var b=a.localName,c="";b?b.indexOf("-")>-1||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,da:c}}function eh(a){for(var b=[],c="",d=0;d>=0&&d<a.length;d++)if(a[d]==="("){var e=$g(a,d);c+=a.slice(d,e+1);d=e}else a[d]===","?(b.push(c),c=""):c+=a[d];c&&b.push(c);return b}
function fh(a){if(Fg!==void 0)return Fg;if(a.__cssBuild===void 0){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b=a.localName==="template"?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),b[0]==="css-build")){b=b[1];break a}b=""}if(b!==""){var c=a.localName==="template"?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
function gh(a){a=a===void 0?"":a;return a!==""&&U?T?a==="shadow":a==="shady":!1};function hh(a,b){var c=window.shadyCSSStyleTransformHooks;return c&&(c=c.didTransformSelector,typeof c==="function")?c(a,b):a}function ih(){}function jh(a,b){var c=V;c.ma(a,function(d){c.element(d,b||"")})}n=ih.prototype;n.ma=function(a,b){a.nodeType===Node.ELEMENT_NODE&&b(a);if(a=a.localName==="template"?(a.content||a._content||a).childNodes:a.children||a.childNodes)for(var c=0;c<a.length;c++)this.ma(a[c],b)};
n.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute("class");c?d&&(b=d.replace("style-scope","").replace(b,""),bh(a,b)):bh(a,(d?d+" ":"")+"style-scope "+b)}};function kh(a,b,c){var d=V;d.ma(a,function(e){d.element(e,b,!0);d.element(e,c)})}function lh(a,b){var c=V;c.ma(a,function(d){c.element(d,b||"",!0)})}
function mh(a,b,c,d,e){var f=V;e=e===void 0?"":e;e===""&&(T||(d===void 0?"":d)==="shady"?e=Sg(b,c):(a=dh(a),e=nh(f,b,a.is,a.da,c)+"\n\n"));return e.trim()}function nh(a,b,c,d,e){var f=a.xa(c,d);c=a.Qa(c);return Sg(b,function(g){g.Ic||(a.ib(g,a.Ea,c,f),g.Ic=!0);e&&e(g,c,f)})}n.Qa=function(a){return a?"."+a:""};n.xa=function(a,b){return b?"[is="+a+"]":a};n.ib=function(a,b,c,d){a.selector=a.o=this.jb(a,b,c,d)};
n.jb=function(a,b,c,d){var e=eh(a.selector);if(!Vg(a)){a=0;for(var f=e.length,g=void 0;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.filter(function(h){return!!h}).join(",")};n.lb=function(a){return a.replace(oh,function(b,c,d){d.indexOf("+")>-1?d=d.replace(/\+/g,"___"):d.indexOf("___")>-1&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})};
n.ec=function(a){for(var b=[],c;c=a.match(ph);){var d=c.index,e=$g(a,d);if(e===-1)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{La:a,matches:b}};n.jc=function(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])};
n.Ea=function(a,b,c){var d=this,e=!1;a=a.trim();var f=oh.test(a);f&&(a=a.replace(oh,function(k,l,p){return":"+l+"("+p.replace(/\s/g,"")+")"}),a=this.lb(a));var g=ph.test(a);if(g){var h=this.ec(a);a=h.La;h=h.matches}a=a.replace(qh,":host $1");a=a.replace(rh,function(k,l,p){e||(k=d.qc(p,l,b,c),e=e||k.stop,l=k.yc,p=k.value);return l+p});g&&(a=this.jc(a,h));f&&(a=this.lb(a));a=a.replace(sh,function(k,l,p,v){return'[dir="'+p+'"] '+l+v+", "+l+'[dir="'+p+'"]'+v});return hh(a,b)};
n.qc=function(a,b,c,d){var e=a.indexOf("::slotted");a.indexOf(":host")>=0?a=this.sc(a,d):e!==0&&(a=c?this.kb(a,c):a);c=!1;e>=0&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(th,function(g,h){return" > "+h}))}return{value:a,yc:b,stop:f}};n.kb=function(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d<a.length;d++)if(d%2===1)c.push(a[d]);else{var e=a[d];if(e!==""||d!==a.length-1)e=e.split(":"),e[0]+=b,c.push(e.join(":"))}return c.join("")};
n.sc=function(a,b){var c=a.match(uh);return(c=c&&c[2].trim()||"")?c[0].match(vh)?a.replace(uh,function(d,e,f){return b+f}):c.split(vh)[0]===b?c:"should_not_match":a.replace(":host",b)};function wh(a){a.selector===":root"&&(a.selector="html")}n.rc=function(a){return a.match(":host")?"":a.match("::slotted")?this.Ea(a,":not(.style-scope)"):hh(this.kb(a.trim(),":not(.style-scope)"),":not(.style-scope)")};ca.Object.defineProperties(ih.prototype,{ea:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var oh=/:(nth[-\w]+)\(([^)]+)\)/,rh=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,vh=/[[.:#*]/,qh=RegExp("^(::slotted)"),uh=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,th=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,sh=/(.*):dir\((?:(ltr|rtl))\)(.*)/,ph=/:(?:matches|any|-(?:webkit|moz)-any)/,V=new ih;function xh(a,b,c,d,e){this.A=a||null;this.placeholder=b||null;this.Ja=c||[];this.T=null;this.cssBuild=e||"";this.da=d||"";this.R=this.v=this.F=null}function W(a){return a?a.__styleInfo:null}function yh(a,b){return a.__styleInfo=b}xh.prototype.Ub=function(){return this.A};xh.prototype._getStyleRules=xh.prototype.Ub;function zh(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Ah=/:host\s*>\s*/,Bh=navigator.userAgent.match("Trident");function Ch(){}function Dh(a){var b={},c=[],d=0;Tg(a,function(f){Eh(f);f.index=d++;f=f.l.cssText;for(var g;g=Ng.exec(f);){var h=g[1];g[2]!==":"&&(b[h]=!0)}},function(f){c.push(f)});a.Xb=c;a=[];for(var e in b)a.push(e);return a}
function Eh(a){if(!a.l){var b={},c={};Fh(a,c)&&(b.D=c,a.rules=null);b.cssText=a.parsedCssText.replace(Qg,"").replace(Lg,"");a.l=b}}function Fh(a,b){var c=a.l;if(c){if(c.D)return Object.assign(b,c.D),!0}else{c=a.parsedCssText;for(var d;a=Lg.exec(c);){d=(a[2]||a[3]).trim();if(d!=="inherit"||d!=="unset")b[a[1].trim()]=d;d=!0}return d}}
function Gh(a,b,c){b&&(b=b.indexOf(";")>=0?Hh(a,b,c):ah(b,function(d,e,f,g){if(!e)return d+g;(e=Gh(a,c[e],c))&&e!=="initial"?e==="apply-shim-inherit"&&(e="inherit"):e=Gh(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""}
function Hh(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){Mg.lastIndex=0;if(f=Mg.exec(e))e=Gh(a,c[f[1]],c);else if(f=e.indexOf(":"),f!==-1){var g=e.substring(f);g=g.trim();g=Gh(a,g,c)||g;e=e.substring(0,f)+g}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
function Ih(a,b){var c={},d=[];Tg(a,function(e){e.l||Eh(e);var f=e.o||e.parsedSelector;b&&e.l.D&&f&&zh.call(b,f)&&(Fh(e,c),e=e.index,f=parseInt(e/32,10),d[f]=(d[f]||0)|1<<e%32)},null,!0);return{D:c,key:d}}
function Jh(a,b,c,d){b.l||Eh(b);if(b.l.D){var e=dh(a);a=e.is;e=e.da;e=a?V.xa(a,e):"html";var f=b.parsedSelector;var g=!!f.match(Ah)||e==="html"&&f.indexOf("html")>-1;var h=f.indexOf(":host")===0&&!g;c==="shady"&&(g=f===e+" > *."+e||f.indexOf("html")!==-1,h=!g&&f.indexOf(e)===0);if(g||h)c=e,h&&(b.o||(b.o=V.jb(b,V.Ea,V.Qa(a),e)),c=b.o||e),g&&e==="html"&&(c=b.o||b.cd),d({La:c,Hc:h,bd:g})}}
function Kh(a,b,c){var d={},e={};Tg(b,function(f){Jh(a,f,c,function(g){zh.call(a._element||a,g.La)&&(g.Hc?Fh(f,d):Fh(f,e))})},null,!0);return{Pc:e,Gc:d}}
function Lh(a,b,c,d){var e=dh(b),f=V.xa(e.is,e.da),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=W(b);e=h.A;h=h.cssBuild;var k=a.Kb(b,e,d);return mh(b,e,function(l){var p="";l.l||Eh(l);l.l.cssText&&(p=Hh(a,l.l.cssText,c));l.cssText=p;if(!T&&!Vg(l)&&l.cssText){var v=p=l.cssText;l.ob==null&&(l.ob=Og.test(p));if(l.ob)if(l.ra==null){l.ra=[];for(var B in k)v=k[B],v=v(p),p!==v&&(p=v,l.ra.push(B))}else{for(B=0;B<l.ra.length;++B)v=k[l.ra[B]],p=v(p);v=p}l.cssText=
v;a.oc(l,g,f,d)}},h)}Ch.prototype.Kb=function(a,b,c){a=b.Xb;b={};if(!T&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.nc(e,c),b[e.keyframesName]=this.Yb(e);return b};Ch.prototype.Yb=function(a){return function(b){return b.replace(a.Jc,a.wb)}};Ch.prototype.nc=function(a,b){a.Jc=new RegExp("\\b"+a.keyframesName+"(?!\\B|-)","g");a.wb=a.keyframesName+"-"+b;a.o=a.o||a.selector;a.selector=a.o.replace(a.keyframesName,a.wb)};
Ch.prototype.oc=function(a,b,c,d){a.o=a.o||a.selector;d="."+d;for(var e=eh(a.o),f=0,g=e.length,h=void 0;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};function Mh(a,b){var c=Nh,d=Ug(a);a.textContent=Sg(d,function(e){var f=e.cssText=e.parsedCssText;e.l&&e.l.cssText&&(f=f.replace(zg,"").replace(Ag,""),e.cssText=Hh(c,f,b))})}ca.Object.defineProperties(Ch.prototype,{yb:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Nh=new Ch;var Oh={},Ph=window.customElements;if(Ph&&!T&&!Kg){var Qh=Ph.define;Ph.define=function(a,b,c){Oh[a]||(Oh[a]=Zg(a));Qh.call(Ph,a,b,c)}};function Rh(){this.cache={};this.Vc=100}Rh.prototype.wc=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.D[e]!==b[e])return!1}return!0};Rh.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({D:b,styleElement:c,v:d});e.length>this.Vc&&e.shift();this.cache[a]=e};Rh.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;d>=0;d--){var e=a[d];if(this.wc(e,b,c))return e}};function Sh(){}var Th=new RegExp(V.ea+"\\s*([^\\s]*)");function Uh(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(Th))?a[1]:""}function Vh(a){var b=ch(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?dh(a).is:""}
function Wh(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];if(e.nodeType===Node.ELEMENT_NODE){var f=e.getRootNode(),g=Uh(e);if(g&&f===e.ownerDocument&&(e.localName!=="style"&&e.localName!=="template"||fh(e)===""))lh(e,g);else if(f instanceof ShadowRoot)for(f=Vh(e),f!==g&&kh(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+V.ea+")"),g=0;g<e.length;g++){f=e[g];
var h=Vh(f);h&&V.element(f,h)}}}}}
if(!(T||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Xh=new MutationObserver(Wh),Yh=function(a){Xh.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Yh(document);else{var Zh=function(){Yh(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Zh):requestAnimationFrame(function(){if(document.readyState==="loading"){var a=function(){Zh();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
a)}else Zh()})}Sh=function(){Wh(Xh.takeRecords())}};var $h={};var ai=Promise.resolve();function bi(a){if(a=$h[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function ci(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function di(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,ai.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var ei={},fi=new Rh;function X(){this.gb={};this.L=document.documentElement;var a=new rg;a.rules=[];this.B=yh(this.L,new xh(a));this.za=!1;this.h=this.m=null}n=X.prototype;n.flush=function(){Sh()};n.Qb=function(a){var b=this.gb[a]=(this.gb[a]||0)+1;return a+"-"+b};n.Dc=function(a){return Ug(a)};n.Uc=function(a){return Sg(a)};
n.Pb=function(a){var b=[];a=a.content.querySelectorAll("style");for(var c=0;c<a.length;c++){var d=a[c];if(d.hasAttribute("shady-unscoped")){if(!T){var e=d.textContent;if(!Rg.has(e)){Rg.add(e);var f=document.createElement("style");f.setAttribute("shady-unscoped","");f.textContent=e;document.head.appendChild(f)}d.parentNode.removeChild(d)}}else b.push(d.textContent),d.parentNode.removeChild(d)}return b.join("").trim()};
n.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
n.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!Kg){T||Oh[b]||(Oh[b]=Zg(b));a._prepared=!0;a.name=b;a.extends=c;$h[b]=a;var d=fh(a),e=gh(d);c={is:b,extends:c};var f=this.Pb(a)+(ei[b]||"");this.V();if(!e){var g;if(g=!d)g=Mg.test(f)||Lg.test(f),Mg.lastIndex=0,Lg.lastIndex=0;var h=sg(f);g&&U&&this.m&&this.m.transformRules(h,b);a._styleAst=h}g=[];U||(g=Dh(a._styleAst));if(!g.length||U)b=this.Rb(c,a._styleAst,T?a.content:null,Oh[b]||null,d,e?f:""),a._style=b;a.dc=g}};
n.prepareAdoptedCssText=function(a,b){ei[b]=a.join(" ")};n.prepareTemplateDom=function(a,b){if(!Kg){var c=fh(a);T||c==="shady"||a._domPrepared||(a._domPrepared=!0,jh(a.content,b))}};n.Rb=function(a,b,c,d,e,f){f=mh(a,b,null,e,f);return f.length?Wg(f,a.is,c,d):null};n.cb=function(a){var b=dh(a),c=b.is;b=b.da;var d=Oh[c]||null,e=$h[c];if(e){c=e._styleAst;var f=e.dc;e=fh(e);b=new xh(c,d,f,b,e);yh(a,b);return b}};
n.Lb=function(){return!this.m&&window.ShadyCSS&&window.ShadyCSS.ApplyShim?(this.m=window.ShadyCSS.ApplyShim,this.m.invalidCallback=bi,!0):!1};n.Mb=function(){var a=this;!this.h&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.h=window.ShadyCSS.CustomStyleInterface,this.h.transformCallback=function(b){a.vb(b)},this.h.validateCallback=function(){requestAnimationFrame(function(){(a.h.enqueued||a.za)&&a.flushCustomStyles()})})};n.V=function(){var a=this.Lb();this.Mb();return a};
n.flushCustomStyles=function(){if(!Kg){var a=this.V();if(this.h){var b=this.h.processStyles();!a&&!this.h.enqueued||gh(this.B.cssBuild)||(U?this.B.cssBuild||this.mc(b):(this.ic(b),this.Fa(this.L,this.B),this.Db(b),this.za&&this.styleDocument()),this.h.enqueued=!1)}}};
n.ic=function(a){var b=this;a=a.map(function(c){return b.h.getStyleForCustomStyle(c)}).filter(function(c){return!!c});a.sort(function(c,d){c=d.compareDocumentPosition(c);return c&Node.DOCUMENT_POSITION_FOLLOWING?1:c&Node.DOCUMENT_POSITION_PRECEDING?-1:0});this.B.A.rules=a.map(function(c){return Ug(c)})};
n.styleElement=function(a,b){if(Kg){if(b){W(a)||yh(a,new xh(null));var c=W(a);this.ab(c,b);gi(this,a,c)}}else if(c=W(a)||this.cb(a))this.Aa(a)||(this.za=!0),b&&this.ab(c,b),U?gi(this,a,c):(this.flush(),this.Fa(a,c),c.Ja&&c.Ja.length&&this.Eb(a,c))};n.ab=function(a,b){a.T=a.T||{};Object.assign(a.T,b)};
function gi(a,b,c){var d=dh(b).is;if(c.T){var e=c.T,f;for(f in e)f===null?b.style.removeProperty(f):b.style.setProperty(f,e[f])}if(((e=$h[d])||a.Aa(b))&&(!e||fh(e)==="")&&e&&e._style&&!ci(e)){if(ci(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)a.V(),a.m&&a.m.transformRules(e._styleAst,d),e._style.textContent=mh(b,c.A),di(e);T&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=mh(b,c.A));c.A=e._styleAst}}
n.Da=function(a){return(a=ch(a).getRootNode().host)?W(a)||this.cb(a)?a:this.Da(a):this.L};n.Aa=function(a){return a===this.L};
n.Eb=function(a,b){var c=dh(a).is,d=fi.fetch(c,b.F,b.Ja),e=d?d.styleElement:null,f=b.v;b.v=d&&d.v||this.Qb(c);var g=b.F;var h=b.v;var k=Nh;g=e?e.textContent||"":Lh(k,a,g,h);k=W(a);var l=k.R;l&&!T&&l!==e&&(l._useCount--,l._useCount<=0&&l.parentNode&&l.parentNode.removeChild(l));T?k.R?(k.R.textContent=g,e=k.R):g&&(e=Wg(g,h,a.shadowRoot,k.placeholder)):e?e.parentNode||(Bh&&g.indexOf("@media")>-1&&(e.textContent=g),Xg(e,null,k.placeholder)):g&&(e=Wg(g,h,null,k.placeholder));e&&(e._useCount=e._useCount||
0,k.R!=e&&e._useCount++,k.R=e);h=e;T||(e=b.v,k=g=a.getAttribute("class")||"",f&&(k=g.replace(new RegExp("\\s*x-scope\\s*"+f+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+e,g!==k&&bh(a,k));d||fi.store(c,b.F,h,b.v);return h};
n.Fa=function(a,b){var c=this.Da(a),d=W(c),e=d.F;c===this.L||e||(this.Fa(c,d),e=d.F);c=Object.create(e||null);e=Kh(a,b.A,b.cssBuild);a=Ih(d.A,a).D;Object.assign(c,e.Gc,a,e.Pc);this.bc(c,b.T);a=Nh;d=Object.getOwnPropertyNames(c);e=0;for(var f;e<d.length;e++)f=d[e],c[f]=Gh(a,c[f],c);b.F=c};n.bc=function(a,b){for(var c in b){var d=b[c];if(d||d===0)a[c]=d}};n.styleDocument=function(a){this.styleSubtree(this.L,a)};
n.styleSubtree=function(a,b){var c=ch(a),d=c.shadowRoot,e=this.Aa(a);(d||e)&&this.styleElement(a,b);if(a=e?c:d)for(a=Array.from(a.querySelectorAll("*")).filter(function(f){return ch(f).shadowRoot}),b=0;b<a.length;b++)this.styleSubtree(a[b])};n.mc=function(a){for(var b=0;b<a.length;b++){var c=this.h.getStyleForCustomStyle(a[b]);c&&this.lc(c)}};n.Db=function(a){for(var b=0;b<a.length;b++){var c=this.h.getStyleForCustomStyle(a[b]);c&&Mh(c,this.B.F)}};
n.vb=function(a){var b=this,c=fh(a);c!==this.B.cssBuild&&(this.B.cssBuild=c);if(!gh(c)){var d=Ug(a);Tg(d,function(e){if(T)wh(e);else{var f=V;e.selector=e.parsedSelector;wh(e);f.ib(e,f.rc)}U&&c===""&&(b.V(),b.m&&b.m.transformRule(e))});U?a.textContent=Sg(d):this.B.A.rules.push(d)}};n.lc=function(a){if(U&&this.m){var b=Ug(a);this.V();this.m.transformRules(b);a.textContent=Sg(b)}};
n.getComputedStyleValue=function(a,b){var c;U||(c=(W(a)||W(this.Da(a))).F[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};n.Tc=function(a,b){var c=ch(a).getRootNode();b=b?(typeof b==="string"?b:String(b)).split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===V.ea){c=d[e+1];break}}}c&&b.push(V.ea,c);U||(c=W(a))&&c.v&&b.push(Nh.yb,c.v);bh(a,b.join(" "))};n.pc=function(a){return W(a)};
n.Sc=function(a,b){V.element(a,b)};n.Wc=function(a,b){V.element(a,b,!0)};n.Rc=function(a){return Vh(a)};n.Ac=function(a){return Uh(a)};X.prototype.flush=X.prototype.flush;X.prototype.prepareTemplate=X.prototype.prepareTemplate;X.prototype.styleElement=X.prototype.styleElement;X.prototype.styleDocument=X.prototype.styleDocument;X.prototype.styleSubtree=X.prototype.styleSubtree;X.prototype.getComputedStyleValue=X.prototype.getComputedStyleValue;X.prototype.setElementClass=X.prototype.Tc;
X.prototype._styleInfoForNode=X.prototype.pc;X.prototype.transformCustomStyleForDocument=X.prototype.vb;X.prototype.getStyleAst=X.prototype.Dc;X.prototype.styleAstToString=X.prototype.Uc;X.prototype.flushCustomStyles=X.prototype.flushCustomStyles;X.prototype.scopeNode=X.prototype.Sc;X.prototype.unscopeNode=X.prototype.Wc;X.prototype.scopeForNode=X.prototype.Rc;X.prototype.currentScopeForNode=X.prototype.Ac;X.prototype.prepareAdoptedCssText=X.prototype.prepareAdoptedCssText;
Object.defineProperties(X.prototype,{nativeShadow:{get:function(){return T}},nativeCss:{get:function(){return U}}});var Y=new X,hi,ii;window.ShadyCSS&&(hi=window.ShadyCSS.ApplyShim,ii=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:Y,prepareTemplate:function(a,b,c){Y.flushCustomStyles();Y.prepareTemplate(a,b,c)},prepareTemplateDom:function(a,b){Y.prepareTemplateDom(a,b)},prepareTemplateStyles:function(a,b,c){Y.flushCustomStyles();Y.prepareTemplateStyles(a,b,c)},styleSubtree:function(a,b){Y.flushCustomStyles();Y.styleSubtree(a,b)},styleElement:function(a){Y.flushCustomStyles();Y.styleElement(a)},styleDocument:function(a){Y.flushCustomStyles();Y.styleDocument(a)},flushCustomStyles:function(){Y.flushCustomStyles()},
getComputedStyleValue:function(a,b){return Y.getComputedStyleValue(a,b)},nativeCss:U,nativeShadow:T,cssBuild:Fg,disableRuntime:Kg};hi&&(window.ShadyCSS.ApplyShim=hi);ii&&(window.ShadyCSS.CustomStyleInterface=ii);/*

Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var ji=window.customElements,ki=window.HTMLImports,li=!1,mi=null;ji.polyfillWrapFlushCallback&&ji.polyfillWrapFlushCallback(function(a){mi=a;li&&a()});function ni(){ki.whenReady(function(){mi&&mi();li=!0;window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}document.readyState!=="complete"?(window.addEventListener("load",ni),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",ni);ni()})):ni();})();
//# sourceMappingURL=webcomponents-lite.js.map
